Skip to content

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

docs: clarify semantics of redirected response (#13636)

Yury Semikhatsky0a401b2d86a3
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md
index 9bcf7e1ba5..38b47e2de0 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -2018,8 +2018,8 @@ Navigate to the next page in history.
- alias-java: navigate
- returns: <[null]|[Response]>
-Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the
-last redirect.
+Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first
+non-redirect response.
The method will throw an error if:
* there's an SSL error (e.g. in case of self-signed certificates).
diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts
index babfb25cab..c90f8a5587 100644
--- a/packages/playwright-core/types/types.d.ts
+++ b/packages/playwright-core/types/types.d.ts
@@ -2296,8 +2296,8 @@ export interface Page {
}): Promise<null|Response>;
/**
- * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the
- * last redirect.
+ * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first
+ * non-redirect response.
*
* The method will throw an error if:
* - there's an SSL error (e.g. in case of self-signed certificates).
diff --git a/tests/config/experimental.d.ts b/tests/config/experimental.d.ts
index 1525ad4f11..880333a64f 100644
--- a/tests/config/experimental.d.ts
+++ b/tests/config/experimental.d.ts
@@ -2298,8 +2298,8 @@ export interface Page {
}): Promise<null|Response>;
/**
- * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the response of the
- * last redirect.
+ * Returns the main resource response. In case of multiple redirects, the navigation will resolve with the first
+ * non-redirect response.
*
* The method will throw an error if:
* - there's an SSL error (e.g. in case of self-signed certificates).