mirror of
https://github.com/MontFerret/ferret.git
synced 2025-11-27 22:08:15 +02:00
Added support to open blank page
This commit is contained in:
3
docs/examples/blank-page.fql
Normal file
3
docs/examples/blank-page.fql
Normal file
@@ -0,0 +1,3 @@
|
||||
LET doc = DOCUMENT("about:blank", true)
|
||||
NAVIGATE(doc, "https://www.google.com/")
|
||||
RETURN doc.url
|
||||
@@ -1,13 +1,12 @@
|
||||
LET doc = DOCUMENT("https://github.com/", true)
|
||||
|
||||
LET main = ELEMENT(doc, '.application-main')
|
||||
LOG('innerText:start')
|
||||
LET mainTxt = main.innerText
|
||||
LOG('innerText:end')
|
||||
|
||||
NAVIGATE(doc, "https://github.com/features")
|
||||
|
||||
LET features = ELEMENT(doc, '.application-main')
|
||||
LET featuresTxt = features.innerText
|
||||
|
||||
LOG("featuresTxt:", featuresTxt)
|
||||
|
||||
RETURN mainTxt == featuresTxt
|
||||
|
||||
Reference in New Issue
Block a user