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
+2-9
Original file line number
Diff line number
Diff line change
@@ -209,7 +209,7 @@ Indicates that the browser is connected.
209
209
-`locale` <?[string]> Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value, `Accept-Language` request header value as well as number and date formatting rules.
210
210
-`permissions` <[Object]> A map from origin keys to permissions values. See [browserContext.setPermissions](#browsercontextsetpermissionsorigin-permissions) for more details.
211
211
-`extraHTTPHeaders` <[Object]> An object containing additional HTTP headers to be sent with every request. All header values must be strings.
212
-
-`offline` <[boolean]> Whether to emulate network being offline for the browser context.
212
+
-`offline` <[boolean]> Whether to emulate network being offline. Defaults to `false`.
213
213
- returns: <[Promise]<[BrowserContext]>>
214
214
215
215
Creates a new browser context. It won't share cookies/cache with other browser contexts.
@@ -244,7 +244,7 @@ Creates a new browser context. It won't share cookies/cache with other browser c
244
244
-`locale` <?[string]> Specify user locale, for example `en-GB`, `de-DE`, etc. Locale will affect `navigator.language` value, `Accept-Language` request header value as well as number and date formatting rules.
245
245
-`permissions` <[Object]> A map from origin keys to permissions values. See [browserContext.setPermissions](#browsercontextsetpermissionsorigin-permissions) for more details.
246
246
-`extraHTTPHeaders` <[Object]> An object containing additional HTTP headers to be sent with every request. All header values must be strings.
247
-
-`offline` <[boolean]> Whether to emulate network being offline for the browser context.
247
+
-`offline` <[boolean]> Whether to emulate network being offline. Defaults to `false`.
248
248
- returns: <[Promise]<[Page]>>
249
249
250
250
Creates a new page in a new browser context. Closing this page will close the context as well.
0 commit comments