1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/examples/redirects.fql
2019-12-24 18:51:59 -05:00

15 lines
262 B
Plaintext

LET doc = DOCUMENT("http://waos.ovh/redirect.html", {
driver: 'cdp',
viewport: {
width: 1920,
height: 1080
}
})
CLICK(doc, '.click')
WAIT_NAVIGATION(doc, {
target: "(\/[0-9].*\?|redirect2.html)"
})
RETURN ELEMENT(doc, '.title')