1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-14 11:23:02 +02:00
ferret/examples/click.fql

9 lines
219 B
Plaintext
Raw Normal View History

LET doc = DOCUMENT("https://github.com/", true)
LET btn = ELEMENT(doc, ".HeaderMenu a")
2018-09-25 23:58:57 +02:00
CLICK(btn)
WAIT_NAVIGATION(doc)
WAIT_ELEMENT(doc, '.IconNav')
FOR el IN ELEMENTS(doc, '.IconNav a')
2018-09-25 23:58:57 +02:00
RETURN TRIM(el.innerText)