docs(python): add BrowserType.connect (#6230)

This commit is contained in:
Max Schmitt 2021-04-19 17:43:30 +02:00 committed by GitHub
parent bd0614b0c8
commit fd1f3fa322
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,7 +66,7 @@ with sync_playwright() as playwright:
```
## async method: BrowserType.connect
* langs: js, java
* langs: js, java, python
- returns: <[Browser]>
This methods attaches Playwright to an existing browser instance.
@ -82,20 +82,20 @@ This methods attaches Playwright to an existing browser instance.
`30000` (30 seconds). Pass `0` to disable timeout.
### param: BrowserType.connect.wsEndpoint
* langs: java
* langs: java, python
- `wsEndpoint` <[string]>
A browser websocket endpoint to connect to.
### option: BrowserType.connect.slowMo
* langs: java
* langs: java, python
- `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
* langs: java, python
- `timeout` <[float]>
Maximum time in milliseconds to wait for the connection to be established. Defaults to