Skip to content

Commit f41d000

Browse files
authored
docs: enable BowserType.connect in java (#5686) (#5691)
1 parent 75b83cb commit f41d000

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

docs/src/api/class-browsertype.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,13 @@ with sync_playwright() as playwright:
6666
```
6767

6868
## async method: BrowserType.connect
69-
* langs: js
69+
* langs: js, java
7070
- returns: <[Browser]>
7171

7272
This methods attaches Playwright to an existing browser instance.
7373

7474
### param: BrowserType.connect.params
75+
* langs: js
7576
- `params` <[Object]>
7677
- `wsEndpoint` <[string]> A browser websocket endpoint to connect to.
7778
- `slowMo` <[float]> Slows down Playwright operations by the specified amount of milliseconds. Useful so that you
@@ -80,6 +81,26 @@ This methods attaches Playwright to an existing browser instance.
8081
- `timeout` <[float]> Maximum time in milliseconds to wait for the connection to be established. Defaults to
8182
`30000` (30 seconds). Pass `0` to disable timeout.
8283

84+
### param: BrowserType.connect.wsEndpoint
85+
* langs: java
86+
- `wsEndpoint` <[string]>
87+
88+
A browser websocket endpoint to connect to.
89+
90+
### option: BrowserType.connect.slowMo
91+
* langs: java
92+
- `slowMo` <[float]>
93+
94+
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you
95+
can see what is going on. Defaults to 0.
96+
97+
### option: BrowserType.connect.timeout
98+
* langs: java
99+
- `timeout` <[float]>
100+
101+
Maximum time in milliseconds to wait for the connection to be established. Defaults to
102+
`30000` (30 seconds). Pass `0` to disable timeout.
103+
83104
## async method: BrowserType.connectOverCDP
84105
* langs: js
85106
- returns: <[Browser]>

0 commit comments

Comments
 (0)