Back to Puppeteer

Page.reload() method

docs/api/puppeteer.page.reload.md

19.2.2689 B
Original Source

Page.reload() method

Reloads the page.

Signature

typescript
class Page {
  abstract reload(options?: ReloadOptions): Promise<HTTPResponse | null>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

ReloadOptions

</td><td>

(Optional) Options to configure waiting behavior.

</td></tr> </tbody></table>

Returns:

Promise<HTTPResponse | null>

A promise which resolves to the main resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect.