docs(page): Document Page.reload (#9926)
This commit is contained in:
parent
3c420a7cf1
commit
498894280b
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
||||||
4
packages/playwright-core/types/types.d.ts
vendored
4
packages/playwright-core/types/types.d.ts
vendored
|
|
@ -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?: {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue