docs(page): Document Page.reload (#9926)

This commit is contained in:
Darío Kondratiuk 2021-11-01 14:27:03 -03:00 committed by GitHub
parent 3c420a7cf1
commit 498894280b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -2411,6 +2411,7 @@ Shortcut for main frame's [`method: Frame.querySelectorAll`].
## async method: Page.reload ## async method: Page.reload
- returns: <[null]|[Response]> - returns: <[null]|[Response]>
This method reloads the current page, in the same way as if the user had triggered a browser refresh.
Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the
last redirect. last redirect.

View file

@ -2730,8 +2730,8 @@ export interface Page {
}): Promise<void>; }): Promise<void>;
/** /**
* Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the * This method reloads the current page, in the same way as if the user had triggered a browser refresh. Returns the main
* last redirect. * resource response. In case of multiple redirects, the navigation will resolve with the response of the last redirect.
* @param options * @param options
*/ */
reload(options?: { reload(options?: {