forward
Goes forward in browser history, optionally accepting waitUntil and timeout arguments. Returns null if no forward is possible
Example:
mutation GoForward {
firstNav: goto(url: "https://example.com", waitUntil: load) {
time
}
secondNav: goto(url: "https://browserless.io", waitUntil: load) {
time
}
back(waitUntil: domContentLoaded) {
status
}
forward(waitUntil: domContentLoaded) {
status
}
}
forward(
timeout: Float
waitUntil: WaitUntilHistory = commit
): HTTPResponse
Arguments
forward.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.
forward.waitUntil
● WaitUntilHistory
enum
When to consider the page fully-loaded and proceed with further execution
Type
HTTPResponse
object
Response returned after a navigation event