From f41d000cc6702bd4fa66f474d98d1f04230d7fb6 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Tue, 2 Mar 2021 17:20:24 -0800 Subject: [PATCH] docs: enable BowserType.connect in java (#5686) (#5691) --- docs/src/api/class-browsertype.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/docs/src/api/class-browsertype.md b/docs/src/api/class-browsertype.md index ab22a1b6b200e..4e1767cab634d 100644 --- a/docs/src/api/class-browsertype.md +++ b/docs/src/api/class-browsertype.md @@ -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]>