File tree Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Expand file tree Collapse file tree 1 file changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,13 @@ with sync_playwright() as playwright:
66
66
```
67
67
68
68
## async method: BrowserType.connect
69
- * langs: js
69
+ * langs: js, java
70
70
- returns: <[ Browser] >
71
71
72
72
This methods attaches Playwright to an existing browser instance.
73
73
74
74
### param: BrowserType.connect.params
75
+ * langs: js
75
76
- ` params ` <[ Object] >
76
77
- ` wsEndpoint ` <[ string] > A browser websocket endpoint to connect to.
77
78
- ` 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.
80
81
- ` timeout ` <[ float] > Maximum time in milliseconds to wait for the connection to be established. Defaults to
81
82
` 30000 ` (30 seconds). Pass ` 0 ` to disable timeout.
82
83
84
+ ### param: BrowserType.connect.wsEndpoint
85
+ * langs: java
86
+ - ` wsEndpoint ` <[ string] >
87
+
88
+ A browser websocket endpoint to connect to.
89
+
90
+ ### option: BrowserType.connect.slowMo
91
+ * langs: java
92
+ - ` slowMo ` <[ float] >
93
+
94
+ Slows down Playwright operations by the specified amount of milliseconds. Useful so that you
95
+ can see what is going on. Defaults to 0.
96
+
97
+ ### option: BrowserType.connect.timeout
98
+ * langs: java
99
+ - ` timeout ` <[ float] >
100
+
101
+ Maximum time in milliseconds to wait for the connection to be established. Defaults to
102
+ ` 30000 ` (30 seconds). Pass ` 0 ` to disable timeout.
103
+
83
104
## async method: BrowserType.connectOverCDP
84
105
* langs: js
85
106
- returns: <[ Browser] >
You can’t perform that action at this time.
0 commit comments