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 ## async method: BrowserType.connect
* langs: js, java * langs: js, java, python
- returns: <[Browser]> - returns: <[Browser]>
This methods attaches Playwright to an existing browser instance. 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. `30000` (30 seconds). Pass `0` to disable timeout.
### param: BrowserType.connect.wsEndpoint ### param: BrowserType.connect.wsEndpoint
* langs: java * langs: java, python
- `wsEndpoint` <[string]> - `wsEndpoint` <[string]>
A browser websocket endpoint to connect to. A browser websocket endpoint to connect to.
### option: BrowserType.connect.slowMo ### option: BrowserType.connect.slowMo
* langs: java * langs: java, python
- `slowMo` <[float]> - `slowMo` <[float]>
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you Slows down Playwright operations by the specified amount of milliseconds. Useful so that you
can see what is going on. Defaults to 0. can see what is going on. Defaults to 0.
### option: BrowserType.connect.timeout ### option: BrowserType.connect.timeout
* langs: java * langs: java, python
- `timeout` <[float]> - `timeout` <[float]>
Maximum time in milliseconds to wait for the connection to be established. Defaults to Maximum time in milliseconds to wait for the connection to be established. Defaults to