1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/examples/navigate.fql
2019-07-23 14:55:26 -04:00

11 lines
299 B
Plaintext

LET doc = DOCUMENT("https://github.com/", { driver: "cdp" })
LET main = ELEMENT(doc, '.application-main')
LET mainTxt = main.innerText
NAVIGATE(doc, "https://github.com/features")
LET features = ELEMENT(doc, '.application-main')
LET featuresTxt = features.innerText
RETURN mainTxt != featuresTxt