mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
4af0e0f15f
* Added possibility to load pages from memory * Fixed indent
18 lines
273 B
Plaintext
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") |