1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-05-15 22:26:40 +02:00
ferret/docs/examples/navigate.fql

14 lines
331 B
Plaintext
Raw Normal View History

2018-09-25 19:04:07 -04:00
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