1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/e2e/tests/dynamic/parse.fql
Tim Voronov 4af0e0f15f
Added possibility to load pages from memory (#434)
* Added possibility to load pages from memory

* Fixed indent
2020-01-04 12:57:41 -05:00

18 lines
273 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 EXPECT(title.innerText, "Offline")