mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-08 03:13:15 +02:00
f7f17ea5b4
* 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
9 lines
318 B
Plaintext
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"]
|