waitForNavigation
Waits for a navigation even to fire, useful for clicking an element and waiting for a page load of some
Example:
mutation WaitForNavigation {
goto(url: "https://example.com") {
status
}
waitForNavigation(waitUntil: load) {
status
}
}
waitForNavigation(
timeout: Float
waitUntil: WaitUntilGoto = commit
): HTTPResponse
Arguments
waitForNavigation.timeout
● Float
scalar
The maximum amount of time, in milliseconds, to wait for the page to load, overriding any defaults. Default timeout is 30 seconds, or 30000.
waitForNavigation.waitUntil
● WaitUntilGoto
enum
When to consider the page fully-loaded and proceed with further execution
Type
HTTPResponse
object
Response returned after a navigation event