docs: enable BowserType.connect in java (#5686)
This commit is contained in:
parent
ff243f1af5
commit
30e88c36fa
|
|
@ -66,12 +66,13 @@ with sync_playwright() as playwright:
|
||||||
```
|
```
|
||||||
|
|
||||||
## async method: BrowserType.connect
|
## async method: BrowserType.connect
|
||||||
* langs: js
|
* langs: js, java
|
||||||
- returns: <[Browser]>
|
- returns: <[Browser]>
|
||||||
|
|
||||||
This methods attaches Playwright to an existing browser instance.
|
This methods attaches Playwright to an existing browser instance.
|
||||||
|
|
||||||
### param: BrowserType.connect.params
|
### param: BrowserType.connect.params
|
||||||
|
* langs: js
|
||||||
- `params` <[Object]>
|
- `params` <[Object]>
|
||||||
- `wsEndpoint` <[string]> A browser websocket endpoint to connect to.
|
- `wsEndpoint` <[string]> A browser websocket endpoint to connect to.
|
||||||
- `slowMo` <[float]> Slows down Playwright operations by the specified amount of milliseconds. Useful so that you
|
- `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.
|
||||||
- `timeout` <[float]> Maximum time in milliseconds to wait for the connection to be established. Defaults to
|
- `timeout` <[float]> Maximum time in milliseconds to wait for the connection to be established. Defaults to
|
||||||
`30000` (30 seconds). Pass `0` to disable timeout.
|
`30000` (30 seconds). Pass `0` to disable timeout.
|
||||||
|
|
||||||
|
### param: BrowserType.connect.wsEndpoint
|
||||||
|
* langs: java
|
||||||
|
- `wsEndpoint` <[string]>
|
||||||
|
|
||||||
|
A browser websocket endpoint to connect to.
|
||||||
|
|
||||||
|
### option: BrowserType.connect.slowMo
|
||||||
|
* langs: java
|
||||||
|
- `slowMo` <[float]>
|
||||||
|
|
||||||
|
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you
|
||||||
|
can see what is going on. Defaults to 0.
|
||||||
|
|
||||||
|
### option: BrowserType.connect.timeout
|
||||||
|
* langs: java
|
||||||
|
- `timeout` <[float]>
|
||||||
|
|
||||||
|
Maximum time in milliseconds to wait for the connection to be established. Defaults to
|
||||||
|
`30000` (30 seconds). Pass `0` to disable timeout.
|
||||||
|
|
||||||
## async method: BrowserType.connectOverCDP
|
## async method: BrowserType.connectOverCDP
|
||||||
* langs: js
|
* langs: js
|
||||||
- returns: <[Browser]>
|
- returns: <[Browser]>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue