docs: enable BowserType.connect in java (#5686)

This commit is contained in:
Yury Semikhatsky 2021-03-02 16:25:22 -08:00 committed by GitHub
parent ff243f1af5
commit 30e88c36fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,12 +66,13 @@ with sync_playwright() as playwright:
```
## async method: BrowserType.connect
* langs: js
* langs: js, java
- returns: <[Browser]>
This methods attaches Playwright to an existing browser instance.
### param: BrowserType.connect.params
* langs: js
- `params` <[Object]>
- `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
@ -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
`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
* langs: js
- returns: <[Browser]>