1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/e2e/tests/dynamic/page/parse.fql
Tim Voronov ff8c15eb67
Feature/#577 spa routing (#584)
* Added support of getting URL dynamically
2021-02-16 09:49:26 -05:00

18 lines
272 B
Plaintext

LET page = PARSE(`
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Offline</title>
</head>
<body>
<h1>Hello world</h1>
</body>
</html>
`, {
driver: "cdp"
})
LET title = ELEMENT(page, "title")
RETURN T::EQ(title.innerText, "Offline")