1
0
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:
Tim Voronov 2021-03-06 01:25:37 -05:00
parent 3efc7de346
commit 2f5954eca3
2 changed files with 19 additions and 0 deletions

16
examples/history-api.fql Normal file
View 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
}

View File

@ -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.