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 | (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 the navigation is same page, returns null. If no history entry is found throws.