mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
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
|
||||
* 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]>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user