mirror of
https://github.com/MontFerret/ferret.git
synced 2025-03-17 21:18:37 +02:00
Added docs about statusCodes
This commit is contained in:
parent
3efc7de346
commit
2f5954eca3
16
examples/history-api.fql
Normal file
16
examples/history-api.fql
Normal file
@ -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
|
||||
}
|
@ -32,6 +32,9 @@ type PageLoadParams struct {
|
||||
// @param {Object[]} [params.ignore.resources] - Collection of rules to ignore resources during page load and navigation.
|
||||
// @param {String} [params.ignore.resources.*.url] - Resource url pattern. If set, requests for matching urls will be blocked. Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".
|
||||
// @param {String} [params.ignore.resources.*.type] - Resource type. If set, requests for matching resource types will be blocked.
|
||||
// @param {Object[]} [params.ignore.statusCodes] - Collection of rules to ignore certain HTTP codes that can cause failures.
|
||||
// @param {String} [params.ignore.statusCodes.*.url] - Url pattern. If set, codes for matching urls will be ignored. Wildcards ('*' -> zero or more, '?' -> exactly one) are allowed. Escape character is backslash. Omitting is equivalent to "*".
|
||||
// @param {Int} [params.ignore.statusCodes.*.code] - HTTP code to ignore.
|
||||
// @param {Object} [params.viewport] - Viewport params.
|
||||
// @param {Int} [params.viewport.height] - Viewport height.
|
||||
// @param {Int} [params.viewport.width] - Viewport width.
|
||||
|
Loading…
x
Reference in New Issue
Block a user