1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/examples/navigate.fql

11 lines
299 B
Plaintext
Raw Normal View History

2019-07-23 20:55:26 +02:00
LET doc = DOCUMENT("https://github.com/", { driver: "cdp" })
2018-09-26 01:04:07 +02:00
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
2018-10-16 03:56:07 +02:00
RETURN mainTxt != featuresTxt