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/api.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -223,7 +223,7 @@ Indicates that the browser is connected.
223
223
-`password` <[string]>
224
224
-`colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaoptions) for more details. Defaults to '`light`'.
225
225
-`logger` <[Logger]> Logger sink for Playwright logging.
226
-
-`proxy` <[Object]> Network proxy settings to use with this context. Note that browser needs to be launched with the global proxy for this option to work. If all contexts override the proxy, global proxy will be never used and can be any string, for example `launch({ proxy: { server: 'per-proxy' } })`.
226
+
-`proxy` <[Object]> Network proxy settings to use with this context. Note that browser needs to be launched with the global proxy for this option to work. If all contexts override the proxy, global proxy will be never used and can be any string, for example `launch({ proxy: { server: 'per-context' } })`.
227
227
-`server` <[string]> Proxy to be used for all requests. 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.
228
228
-`bypass` <[string]> Optional coma-separated domains to bypass proxy, for example `".com, chromium.org, .domain.com"`.
229
229
-`username` <[string]> Optional username to use if HTTP proxy requires authentication.
@@ -234,7 +234,7 @@ Indicates that the browser is connected.
234
234
-`height` <[number]> Video frame height.
235
235
-`recordHar` <[Object]> Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into `har.path` file. If not specified, the HAR is not recorded. Make sure to await [`browserContext.close`](#browsercontextclose) for the HAR to be saved.
236
236
-`omitContent` <[boolean]> Optional setting to control whether to omit request content from the HAR. Defaults to `false`.
237
-
-`path` <[string]> path on the filesystem to write the HAR file to.
237
+
-`path` <[string]> Path on the filesystem to write the HAR file to.
238
238
- returns: <[Promise]<[BrowserContext]>>
239
239
240
240
Creates a new browser context. It won't share cookies/cache with other browser contexts.
@@ -277,7 +277,7 @@ Creates a new browser context. It won't share cookies/cache with other browser c
277
277
-`password` <[string]>
278
278
-`colorScheme` <"light"|"dark"|"no-preference"> Emulates `'prefers-colors-scheme'` media feature, supported values are `'light'`, `'dark'`, `'no-preference'`. See [page.emulateMedia(options)](#pageemulatemediaoptions) for more details. Defaults to '`light`'.
279
279
-`logger` <[Logger]> Logger sink for Playwright logging.
280
-
-`proxy` <[Object]> Network proxy settings to use with this context. Note that browser needs to be launched with the global proxy for this option to work. If all contexts override the proxy, global proxy will be never used and can be any string, for example `launch({ proxy: { server: 'per-proxy' } })`.
280
+
-`proxy` <[Object]> Network proxy settings to use with this context. Note that browser needs to be launched with the global proxy for this option to work. If all contexts override the proxy, global proxy will be never used and can be any string, for example `launch({ proxy: { server: 'per-context' } })`.
281
281
-`server` <[string]> Proxy to be used for all requests. 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.
282
282
-`bypass` <[string]> Optional coma-separated domains to bypass proxy, for example `".com, chromium.org, .domain.com"`.
283
283
-`username` <[string]> Optional username to use if HTTP proxy requires authentication.
@@ -288,7 +288,7 @@ Creates a new browser context. It won't share cookies/cache with other browser c
288
288
-`height` <[number]> Video frame height.
289
289
-`recordHar` <[Object]> Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all pages into `har.path` file. If not specified, the HAR is not recorded. Make sure to await [`page.close`](#pagecontext) for the HAR to be saved.
290
290
-`omitContent` <[boolean]> Optional setting to control whether to omit request content from the HAR. Defaults to `false`.
291
-
-`path` <[string]> path on the filesystem to write the HAR file to
291
+
-`path` <[string]> Path on the filesystem to write the HAR file to.
292
292
- returns: <[Promise]<[Page]>>
293
293
294
294
Creates a new page in a new browser context. Closing this page will close the context as well.
@@ -3921,10 +3921,10 @@ ResourceType will be one of the following: `document`, `stylesheet`, `image`, `m
3921
3921
-`domainLookupStart` <[number]> Time immediately before the browser starts the domain name lookup for the resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
3922
3922
-`domainLookupEnd` <[number]> Time immediately after the browser starts the domain name lookup for the resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
3923
3923
-`connectStart` <[number]> Time immediately before the user agent starts establishing the connection to the server to retrieve the resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
3924
-
-`secureConnectionStart` <[number]> immediately before the browser starts the handshake process to secure the current connection. The value is given in milliseconds relative to `startTime`, -1 if not available.
3924
+
-`secureConnectionStart` <[number]> Time immediately before the browser starts the handshake process to secure the current connection. The value is given in milliseconds relative to `startTime`, -1 if not available.
3925
3925
-`connectEnd` <[number]> Time immediately before the user agent starts establishing the connection to the server to retrieve the resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
3926
3926
-`requestStart` <[number]> Time immediately before the browser starts requesting the resource from the server, cache, or local resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
3927
-
-`responseStart` <[number]> immediately after the browser starts requesting the resource from the server, cache, or local resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
3927
+
-`responseStart` <[number]> Time immediately after the browser starts requesting the resource from the server, cache, or local resource. The value is given in milliseconds relative to `startTime`, -1 if not available.
3928
3928
-`responseEnd` <[number]> Time immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first. The value is given in milliseconds relative to `startTime`, -1 if not available.
3929
3929
};
3930
3930
@@ -4483,7 +4483,7 @@ const browser = await chromium.launch({ // Or 'firefox' or 'webkit'.
4483
4483
-`height` <[number]> Video frame height.
4484
4484
-`recordHar` <[Object]> Enables [HAR](http://www.softwareishard.com/blog/har-12-spec) recording for all the pages into `har.path` file. If not specified, HAR is not recorded. Make sure to await [`page.close`](#pagecontext) for HAR to be saved.
4485
4485
-`omitContent` <[boolean]> Optional setting to control whether to omit request content from the HAR. Defaults to false.
4486
-
-`path` <[string]> path on the filesystem to write the HAR file to
4486
+
-`path` <[string]> Path on the filesystem to write the HAR file to.
4487
4487
- returns: <[Promise]<[BrowserContext]>> Promise that resolves to the persistent browser context instance.
4488
4488
4489
4489
Launches browser that uses persistent storage located at `userDataDir` and returns the only context. Closing this context will automatically close the browser.
Copy file name to clipboardExpand all lines: src/server/browserContext.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -324,7 +324,7 @@ export function validateBrowserContextOptions(options: types.BrowserContextOptio
324
324
options.viewport={width: 1280,height: 720};
325
325
if(options.proxy){
326
326
if(!browserOptions.proxy)
327
-
thrownewError(`Browser needs to be launched with the global proxy. If all contexts override the proxy, global proxy will be never used and can be any string, for example "launch({ proxy: { server: 'per-proxy' } })"`);
327
+
thrownewError(`Browser needs to be launched with the global proxy. If all contexts override the proxy, global proxy will be never used and can be any string, for example "launch({ proxy: { server: 'per-context' } })"`);
0 commit comments