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
@@ -218,6 +218,7 @@ Indicates that the browser is connected.
218
218
-`username` <[string]>
219
219
-`password` <[string]>
220
220
-`colorScheme` <"dark"|"light"|"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`'.
221
+
-`logger` <[Logger]> Logger sink for Playwright logging.
221
222
- returns: <[Promise]<[BrowserContext]>>
222
223
223
224
Creates a new browser context. It won't share cookies/cache with other browser contexts.
@@ -259,6 +260,7 @@ Creates a new browser context. It won't share cookies/cache with other browser c
259
260
-`username` <[string]>
260
261
-`password` <[string]>
261
262
-`colorScheme` <"dark"|"light"|"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`'.
263
+
-`logger` <[Logger]> Logger sink for Playwright logging.
262
264
- returns: <[Promise]<[Page]>>
263
265
264
266
Creates a new page in a new browser context. Closing this page will close the context as well.
@@ -3757,7 +3759,7 @@ const { chromium } = require('playwright'); // Or 'firefox' or 'webkit'.
3757
3759
-`options` <[Object]>
3758
3760
-`wsEndpoint` <[string]> A browser websocket endpoint to connect to. **required**
3759
3761
-`slowMo` <[number]> Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on. Defaults to 0.
3760
-
-`loggerSink` <[LoggerSink]> Sink for log messages.
3762
+
-`logger` <[Logger]> Logger sink for Playwright logging.
3761
3763
- returns: <[Promise]<[Browser]>>
3762
3764
3763
3765
This methods attaches Playwright to an existing browser instance.
@@ -3774,7 +3776,7 @@ This methods attaches Playwright to an existing browser instance.
3774
3776
-`handleSIGINT` <[boolean]> Close the browser process on Ctrl-C. Defaults to `true`.
3775
3777
-`handleSIGTERM` <[boolean]> Close the browser process on SIGTERM. Defaults to `true`.
3776
3778
-`handleSIGHUP` <[boolean]> Close the browser process on SIGHUP. Defaults to `true`.
3777
-
-`loggerSink` <[LoggerSink]> Sink for log messages.
3779
+
-`logger` <[Logger]> Logger sink for Playwright logging.
3778
3780
-`timeout` <[number]> Maximum time in milliseconds to wait for the browser instance to start. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
3779
3781
-`env` <[Object]> Specify environment variables that will be visible to the browser. Defaults to `process.env`.
3780
3782
-`devtools` <[boolean]> **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the `headless` option will be set `false`.
@@ -3807,7 +3809,7 @@ const browser = await chromium.launch({ // Or 'firefox' or 'webkit'.
3807
3809
-`handleSIGINT` <[boolean]> Close the browser process on Ctrl-C. Defaults to `true`.
3808
3810
-`handleSIGTERM` <[boolean]> Close the browser process on SIGTERM. Defaults to `true`.
3809
3811
-`handleSIGHUP` <[boolean]> Close the browser process on SIGHUP. Defaults to `true`.
3810
-
-`loggerSink` <[LoggerSink]> Sink for log messages.
3812
+
-`logger` <[Logger]> Logger sink for Playwright logging.
3811
3813
-`timeout` <[number]> Maximum time in milliseconds to wait for the browser instance to start. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
3812
3814
-`env` <[Object]> Specify environment variables that will be visible to the browser. Defaults to `process.env`.
3813
3815
-`devtools` <[boolean]> **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the `headless` option will be set `false`.
@@ -3826,7 +3828,7 @@ Launches browser instance that uses persistent storage located at `userDataDir`.
3826
3828
-`handleSIGINT` <[boolean]> Close the browser process on Ctrl-C. Defaults to `true`.
3827
3829
-`handleSIGTERM` <[boolean]> Close the browser process on SIGTERM. Defaults to `true`.
3828
3830
-`handleSIGHUP` <[boolean]> Close the browser process on SIGHUP. Defaults to `true`.
3829
-
-`loggerSink` <[LoggerSink]> Sink for log messages.
3831
+
-`logger` <[Logger]> Logger sink for Playwright logging.
3830
3832
-`timeout` <[number]> Maximum time in milliseconds to wait for the browser instance to start. Defaults to `30000` (30 seconds). Pass `0` to disable timeout.
3831
3833
-`env` <[Object]> Specify environment variables that will be visible to the browser. Defaults to `process.env`.
3832
3834
-`devtools` <[boolean]> **Chromium-only** Whether to auto-open a Developer Tools panel for each tab. If this option is `true`, the `headless` option will be set `false`.
@@ -3853,7 +3855,7 @@ const { chromium } = require('playwright'); // Or 'webkit' or 'firefox'.
3853
3855
3854
3856
Returns browser name. For example: `'chromium'`, `'webkit'` or `'firefox'`.
3855
3857
3856
-
### class: LoggerSink
3858
+
### class: Logger
3857
3859
3858
3860
Playwright generates a lot of logs and they are accessible via the pluggable logger sink.
3859
3861
@@ -3862,7 +3864,7 @@ const { chromium } = require('playwright'); // Or 'firefox' or 'webkit'.
0 commit comments