You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/api/class-browsertype.md
+20Lines changed: 20 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,6 +144,16 @@ Some common examples:
144
144
1.`"<loopback>"` to expose localhost network.
145
145
1.`"*.test.internal-domain,*.staging.internal-domain,<loopback>"` to expose test/staging deployments and localhost.
146
146
147
+
### option: BrowserType.connect.proxy
148
+
* since: v1.52
149
+
-`proxy` <[Object]>
150
+
-`server` <[string]> Proxy to be used for the remote connection. HTTP and SOCKS proxies are supported, for example `http://myproxy.com:3128` or `socks5://myproxy.com:3128`. Short form `myproxy.com:3128` is considered an HTTP proxy.
151
+
-`bypass` ?<[string]> Optional comma-separated domains to bypass proxy, for example `".com, chromium.org, .domain.com"`.
152
+
-`username` ?<[string]> Optional username to use if HTTP proxy requires authentication.
153
+
-`password` ?<[string]> Optional password to use if HTTP proxy requires authentication.
154
+
155
+
Proxy settings to use for the connection between the client and the remote browser. Note this proxy **is not** used by the browser to load web pages.
156
+
147
157
## async method: BrowserType.connectOverCDP
148
158
* since: v1.9
149
159
- returns: <[Browser]>
@@ -232,6 +242,16 @@ Logger sink for Playwright logging. Optional.
232
242
Maximum time in milliseconds to wait for the connection to be established. Defaults to
233
243
`30000` (30 seconds). Pass `0` to disable timeout.
234
244
245
+
### option: BrowserType.connectOverCDP.proxy
246
+
* since: v1.52
247
+
-`proxy` <[Object]>
248
+
-`server` <[string]> Proxy to be used for the remote connection. HTTP and SOCKS proxies are supported, for example `http://myproxy.com:3128` or `socks5://myproxy.com:3128`. Short form `myproxy.com:3128` is considered an HTTP proxy.
249
+
-`bypass` ?<[string]> Optional comma-separated domains to bypass proxy, for example `".com, chromium.org, .domain.com"`.
250
+
-`username` ?<[string]> Optional username to use if HTTP proxy requires authentication.
251
+
-`password` ?<[string]> Optional password to use if HTTP proxy requires authentication.
252
+
253
+
Proxy settings to use for the connection between the client and the remote browser. Note this proxy **is not** used by the browser to load web pages.
0 commit comments