Skip to main content
Version: Next

Page.goForward() method

This method navigate to the next page in history.

Signature

class Page {
abstract goForward(options?: WaitForOptions): Promise<HTTPResponse | null>;
}

Parameters

Parameter

Type

Description

options

WaitForOptions

(Optional) Navigation Parameter

Returns:

Promise<HTTPResponse | null>

Promise which resolves to the main resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect. If can not go forward, resolves to null.