github.com/MontFerret/ferret@v0.18.0/examples/history-api.fql (about) 1 LET page = DOCUMENT("https://soundcloud.com", { driver: "cdp"}) 2 LET doc = page.mainFrame 3 4 WAIT_ELEMENT(doc, ".trendingTracks") 5 SCROLL_ELEMENT(doc, ".trendingTracks") 6 WAIT_ELEMENT(doc, ".trendingTracks .badgeList__item") 7 8 LET song = ELEMENT(doc, ".trendingTracks .badgeList__item") 9 CLICK(song) 10 11 WAIT_ELEMENT(doc, ".l-listen-hero") 12 13 RETURN { 14 current: page.url, 15 first: doc.url 16 }