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
+6-15Lines changed: 6 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -220,12 +220,10 @@ Indicates that the browser is connected.
220
220
-`password` <[string]>
221
221
-`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`'.
222
222
-`logger` <[Logger]> Logger sink for Playwright logging.
223
-
-`relativeArtifactsPath` <[string]> Specifies a folder for artifacts like downloads, videos and traces, relative to `artifactsPath` from [`browserType.launch`](#browsertypelaunchoptions). Defaults to `.`.
224
-
-`recordVideos` <[boolean]> Enables video recording for all pages to the `relativeArtifactsPath` folder.
225
-
-`videoSize` <[Object]> Specifies dimensions of the automatically recorded video. Can only be used if `recordVideos` is true. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
223
+
-`videosPath` <[string]> Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded.
224
+
-`videoSize` <[Object]> Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
226
225
-`width` <[number]> Video frame width.
227
226
-`height` <[number]> Video frame height.
228
-
-`recordTrace` <[boolean]> Enables trace recording to the `relativeArtifactsPath` folder.
229
227
- returns: <[Promise]<[BrowserContext]>>
230
228
231
229
Creates a new browser context. It won't share cookies/cache with other browser contexts.
@@ -268,12 +266,10 @@ Creates a new browser context. It won't share cookies/cache with other browser c
268
266
-`password` <[string]>
269
267
-`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`'.
270
268
-`logger` <[Logger]> Logger sink for Playwright logging.
271
-
-`relativeArtifactsPath` <[string]> Specifies a folder for artifacts like downloads, videos and traces, relative to `artifactsPath` from [`browserType.launch`](#browsertypelaunchoptions). Defaults to `.`.
272
-
-`recordVideos` <[boolean]> Enables video recording for all pages to the `relativeArtifactsPath` folder.
273
-
-`videoSize` <[Object]> Specifies dimensions of the automatically recorded video. Can only be used if `recordVideos` is true. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
269
+
-`videosPath` <[string]> Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded.
270
+
-`videoSize` <[Object]> Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
274
271
-`width` <[number]> Video frame width.
275
272
-`height` <[number]> Video frame height.
276
-
-`recordTrace` <[boolean]> Enables trace recording to the `relativeArtifactsPath` folder.
277
273
- returns: <[Promise]<[Page]>>
278
274
279
275
Creates a new page in a new browser context. Closing this page will close the context as well.
@@ -4174,7 +4170,6 @@ This methods attaches Playwright to an existing browser instance.
4174
4170
-`username` <[string]> Optional username to use if HTTP proxy requires authentication.
4175
4171
-`password` <[string]> Optional password to use if HTTP proxy requires authentication.
4176
4172
-`downloadsPath` <[string]> If specified, accepted downloads are downloaded into this folder. Otherwise, temporary folder is created and is deleted when browser is closed.
4177
-
-`artifactsPath` <[string]> Specifies a folder for various artifacts like downloads, videos and traces. If not specified, artifacts are not collected.
4178
4173
-`chromiumSandbox` <[boolean]> Enable Chromium sandboxing. Defaults to `true`.
4179
4174
-`firefoxUserPrefs` <[Object]<[string], [string]|[number]|[boolean]>> Firefox user preferences. Learn more about the Firefox user preferences at [`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox).
4180
4175
-`handleSIGINT` <[boolean]> Close the browser process on Ctrl-C. Defaults to `true`.
@@ -4217,7 +4212,6 @@ const browser = await chromium.launch({ // Or 'firefox' or 'webkit'.
4217
4212
-`password` <[string]> Optional password to use if HTTP proxy requires authentication.
4218
4213
-`acceptDownloads` <[boolean]> Whether to automatically download all the attachments. Defaults to `false` where all the downloads are canceled.
4219
4214
-`downloadsPath` <[string]> If specified, accepted downloads are downloaded into this folder. Otherwise, temporary folder is created and is deleted when browser is closed.
4220
-
-`artifactsPath` <[string]> Specifies a folder for various artifacts like downloads, videos and traces. If not specified, artifacts are not collected.
4221
4215
-`chromiumSandbox` <[boolean]> Enable Chromium sandboxing. Defaults to `true`.
4222
4216
-`handleSIGINT` <[boolean]> Close the browser process on Ctrl-C. Defaults to `true`.
4223
4217
-`handleSIGTERM` <[boolean]> Close the browser process on SIGTERM. Defaults to `true`.
@@ -4250,12 +4244,10 @@ const browser = await chromium.launch({ // Or 'firefox' or 'webkit'.
4250
4244
-`username` <[string]>
4251
4245
-`password` <[string]>
4252
4246
-`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`'.
4253
-
-`relativeArtifactsPath` <[string]> Specifies a folder for artifacts like downloads, videos and traces, relative to `artifactsPath`. Defaults to `.`.
4254
-
-`recordVideos` <[boolean]> Enables video recording for all pages to the `relativeArtifactsPath` folder.
4255
-
-`videoSize` <[Object]> Specifies dimensions of the automatically recorded video. Can only be used if `recordVideos` is true. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
4247
+
-`videosPath` <[string]> Enables video recording for all pages to `videosPath` folder. If not specified, videos are not recorded.
4248
+
-`videoSize` <[Object]> Specifies dimensions of the automatically recorded video. Can only be used if `videosPath` is set. If not specified the size will be equal to `viewport`. If `viewport` is not configured explicitly the video size defaults to 1280x720. Actual picture of the page will be scaled down if necessary to fit specified size.
4256
4249
-`width` <[number]> Video frame width.
4257
4250
-`height` <[number]> Video frame height.
4258
-
-`recordTrace` <[boolean]> Enables trace recording to the `relativeArtifactsPath` folder.
4259
4251
- returns: <[Promise]<[BrowserContext]>> Promise that resolves to the persistent browser context instance.
4260
4252
4261
4253
Launches browser that uses persistent storage located at `userDataDir` and returns the only context. Closing this context will automatically close the browser.
@@ -4273,7 +4265,6 @@ Launches browser that uses persistent storage located at `userDataDir` and retur
4273
4265
-`username` <[string]> Optional username to use if HTTP proxy requires authentication.
4274
4266
-`password` <[string]> Optional password to use if HTTP proxy requires authentication.
4275
4267
-`downloadsPath` <[string]> If specified, accepted downloads are downloaded into this folder. Otherwise, temporary folder is created and is deleted when browser is closed.
4276
-
-`artifactsPath` <[string]> Specifies a folder for various artifacts like downloads, videos and traces. If not specified, artifacts are not collected.
4277
4268
-`chromiumSandbox` <[boolean]> Enable Chromium sandboxing. Defaults to `true`.
4278
4269
-`firefoxUserPrefs` <[Object]<[string], [string]|[number]|[boolean]>> Firefox user preferences. Learn more about the Firefox user preferences at [`about:config`](https://support.mozilla.org/en-US/kb/about-config-editor-firefox).
4279
4270
-`handleSIGINT` <[boolean]> Close the browser process on Ctrl-C. Defaults to `true`.
0 commit comments