Skip to content

Commit

Permalink
Added docs about statusCodes
Browse files Browse the repository at this point in the history
  • Loading branch information
ziflex authored and bundleman committed Apr 5, 2021
1 parent a55a083 commit ac38693
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions examples/history-api.fql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
LET page = DOCUMENT("https://soundcloud.com", { driver: "cdp"})
LET doc = page.mainFrame

WAIT_ELEMENT(doc, ".trendingTracks")
SCROLL_ELEMENT(doc, ".trendingTracks")
WAIT_ELEMENT(doc, ".trendingTracks .badgeList__item")

LET song = ELEMENT(doc, ".trendingTracks .badgeList__item")
CLICK(song)

WAIT_ELEMENT(doc, ".l-listen-hero")

RETURN {
page: page.url,
first: doc.url
}

0 comments on commit ac38693

Please sign in to comment.