From 498894280b96e4f8e817ed94abd2fed45a23e138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Mon, 1 Nov 2021 14:27:03 -0300 Subject: [PATCH] docs(page): Document Page.reload (#9926) --- docs/src/api/class-page.md | 1 + packages/playwright-core/types/types.d.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md index 1136c2d349..470f34d409 100644 --- a/docs/src/api/class-page.md +++ b/docs/src/api/class-page.md @@ -2411,6 +2411,7 @@ Shortcut for main frame's [`method: Frame.querySelectorAll`]. ## async method: Page.reload - 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 last redirect. diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 2926997f21..afa103e247 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -2730,8 +2730,8 @@ export interface Page { }): Promise; /** - * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the - * last redirect. + * 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 last redirect. * @param options */ reload(options?: {