mirror of
https://github.com/MontFerret/ferret.git
synced 2025-06-15 00:05:15 +02:00
#23 Added NAVIGATE
This commit is contained in:
13
docs/examples/navigate.fql
Normal file
13
docs/examples/navigate.fql
Normal file
@ -0,0 +1,13 @@
|
||||
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
|
||||
|
||||
RETURN mainTxt == featuresTxt
|
Reference in New Issue
Block a user