docs: expose connectOverCDP in java (#6107)

This commit is contained in:
Yury Semikhatsky 2021-04-06 15:57:51 -07:00 committed by GitHub
parent 112ac2f98c
commit 9abed11782
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -102,7 +102,7 @@ Maximum time in milliseconds to wait for the connection to be established. Defau
`30000` (30 seconds). Pass `0` to disable timeout.
## async method: BrowserType.connectOverCDP
* langs: js
* langs: java, js
- returns: <[Browser]>
This methods attaches Playwright to an existing browser instance using the Chrome DevTools Protocol.
@ -114,6 +114,7 @@ Connecting over the Chrome DevTools Protocol is only supported for Chromium-base
:::
### param: BrowserType.connectOverCDP.params
* langs: js
- `params` <[Object]>
- `wsEndpoint` <[string]> A CDP websocket endpoint to connect to.
- `slowMo` <[float]> Slows down Playwright operations by the specified amount of milliseconds. Useful so that you

View File

@ -88,6 +88,20 @@ playwright.close();
### param: Worker.waitForClose.callback = %%-java-wait-for-event-callback-%%
### option: BrowserType.connectOverCDP.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.connectOverCDP.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.
### option: BrowserType.launch.ignoreDefaultArgs = %%-csharp-java-browser-option-ignoredefaultargs-%%
### option: BrowserType.launchPersistentContext.ignoreDefaultArgs = %%-csharp-java-browser-option-ignoredefaultargs-%%
### option: BrowserType.launch.ignoreAllDefaultArgs = %%-csharp-java-browser-option-ignorealldefaultargs-%%