1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-08 03:13:15 +02:00
ferret/examples/wait_request.fql
Tim Voronov f7f17ea5b4
Feature/network events (#688)
* Added new network events

* Refactored runtime Event streaming

* Added support of using keywords as variables

* Added support of body property in response event

* Added example of subscription to network response

* Added example of subscription to network requests

* Fixed infinite loop bug

* Updated Google example

* Updated unit tests

* Reenamed Event to Message

* Fixed navvigation filtering by frame
2021-11-22 14:36:28 -05:00

9 lines
318 B
Plaintext

LET doc = DOCUMENT('https://soundcloud.com/charts/top', { driver: "cdp", userAgent: "*" })
WAIT_ELEMENT(doc, '.chartTrack__details', 5000)
SCROLL_BOTTOM(doc)
LET evt = (WAITFOR EVENT "request" IN doc FILTER CURRENT.url LIKE "https://api-v2.soundcloud.com/charts?genre=soundcloud*")
RETURN evt.headers["User-Agent"]