puppeteer/website/versioned_docs/version-10.0.0/puppeteer.page.reload.md
TASNEEM KOUSHAR 34ff00e2fe
chore(docs): generate site for v10.0.0
* fix: added parts of website

* fix: removed unnecessary lines

* fix: updated contributing.md

* fix: added parts of sidebar

* fix: added all APIs

* fix: added version 10.0.0

Co-authored-by: Jack Franklin <jacktfranklin@chromium.org>
2021-08-09 09:57:14 +01:00

1.8 KiB

Home > puppeteer > Page > reload

Page.reload() method

Signature:

reload(options?: WaitForOptions): Promise<HTTPResponse | null>;

Parameters

Parameter Type Description
options WaitForOptions Navigation parameters which might have the following properties:

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.

Remarks

The argument options might have the following properties:

  • timeout : Maximum navigation time in milliseconds, defaults to 30 seconds, pass 0 to disable timeout. The default value can be changed by using the page.setDefaultNavigationTimeout(timeout) or page.setDefaultTimeout(timeout) methods.

  • waitUntil: When to consider navigation succeeded, defaults to load. Given an array of event strings, navigation is considered to be successful after all events have been fired. Events can be either:
    - load : consider navigation to be finished when the load event is fired.
    - domcontentloaded : consider navigation to be finished when the DOMContentLoaded event is fired.
    - networkidle0 : consider navigation to be finished when there are no more than 0 network connections for at least 500 ms.
    - networkidle2 : consider navigation to be finished when there are no more than 2 network connections for at least 500 ms.