Skip to content

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

docs: Route.fetch.maxRedirects in java (#20968)

Yury Semikhatskyba6d055bc534
diff --git a/docs/src/api/class-route.md b/docs/src/api/class-route.md
index 31bf5a675a..4f1a00757e 100644
--- a/docs/src/api/class-route.md
+++ b/docs/src/api/class-route.md
@@ -496,8 +496,12 @@ Note that [`option: headers`] option will apply to the fetched request as well a
If set changes the request URL. New URL must have same protocol as original one.
-### option: Route.fetch.maxRedirects = %%-js-python-csharp-fetch-option-maxredirects-%%
+### option: Route.fetch.maxRedirects
* since: v1.31
+- `maxRedirects` <[int]>
+
+Maximum number of request redirects that will be followed automatically. An error will be thrown if the number is exceeded.
+Defaults to `20`. Pass `0` to not follow redirects.
### option: Route.fetch.method
* since: v1.29