mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
docs(python): add BrowserType.connect (#6230)
This commit is contained in:
parent
bd0614b0c8
commit
fd1f3fa322
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user