Skip to content

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

docs: update route callback type for java (#5324)

Yury Semikhatsky494f0f63cca3
diff --git a/docs/src/api/class-browsercontext.md b/docs/src/api/class-browsercontext.md
index 742eafbbfa..2045be173b 100644
--- a/docs/src/api/class-browsercontext.md
+++ b/docs/src/api/class-browsercontext.md
@@ -596,10 +596,17 @@ Enabling routing disables http cache.
A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
### param: BrowserContext.route.handler
+* langs: js, python
- `handler` <[function]\([Route], [Request]\)>
handler function to route the request.
+### param: BrowserContext.route.handler
+* langs: csharp, java
+- `handler` <[function]\([Route]\)>
+
+handler function to route the request.
+
## method: BrowserContext.setDefaultNavigationTimeout
This setting will change the default maximum navigation time for the following methods and related shortcuts:
@@ -735,10 +742,17 @@ A glob pattern, regex pattern or predicate receiving [URL] used to register a ro
[`method: BrowserContext.route`].
### param: BrowserContext.unroute.handler
+* langs: js, python
- `handler` <[function]\([Route], [Request]\)>
Optional handler function used to register a routing with [`method: BrowserContext.route`].
+### param: BrowserContext.unroute.handler
+* langs: csharp, java
+- `handler` <[function]\([Route]\)>
+
+Optional handler function used to register a routing with [`method: BrowserContext.route`].
+
## async method: BrowserContext.waitForEvent
* langs: csharp, js, python
- alias-python: expect_event
diff --git a/docs/src/api/class-page.md b/docs/src/api/class-page.md
index 1670e1dc98..ea9a4cdbea 100644
--- a/docs/src/api/class-page.md
+++ b/docs/src/api/class-page.md
@@ -1817,10 +1817,17 @@ Enabling routing disables http cache.
A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
### param: Page.route.handler
+* langs: js, python
- `handler` <[function]\([Route], [Request]\)>
handler function to route the request.
+### param: Page.route.handler
+* langs: csharp, java
+- `handler` <[function]\([Route]\)>
+
+handler function to route the request.
+
## async method: Page.screenshot
- returns: <[Buffer]>
@@ -2154,10 +2161,17 @@ the [`param: url`].
A glob pattern, regex pattern or predicate receiving [URL] to match while routing.
### param: Page.unroute.handler
+* langs: js, python
- `handler` <[function]\([Route], [Request]\)>
Optional handler function to route the request.
+### param: Page.unroute.handler
+* langs: csharp, java
+- `handler` <[function]\([Route]\)>
+
+Optional handler function to route the request.
+
## method: Page.url
- returns: <[string]>