Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Darío Kondratiuk498894280b96
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<void>;
/**
- * 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?: {