Optional argsOptional channelBrowser distribution channel.
Use "chromium" to opt in to new headless mode.
Use "chrome", "chrome-beta", "chrome-dev", "chrome-canary", "msedge", "msedge-beta", "msedge-dev", or "msedge-canary" to use branded Google Chrome and Microsoft Edge.
Optional chromiumEnable Chromium sandboxing. Defaults to false.
Optional devtoolsChromium-only Whether to auto-open a Developer Tools panel for each tab. If this option is true, the
headless option will be
set false.
Use debugging tools instead.
Optional downloadsIf specified, accepted downloads are downloaded into this directory. Otherwise, temporary directory is created and is deleted when browser is closed. In either case, the downloads are deleted when the browser context they were created in is closed.
Optional envSpecify environment variables that will be visible to the browser. Defaults to process.env.
Optional executablePath to a browser executable to run instead of the bundled one. If
executablePath is
a relative path, then it is resolved relative to the current working directory. Note that Playwright only works
with the bundled Chromium, Firefox or WebKit, use at your own risk.
Optional firefoxFirefox user preferences. Learn more about the Firefox user preferences at
about:config.
Optional handleSIGHUPClose the browser process on SIGHUP. Defaults to true.
Optional handleSIGINTClose the browser process on Ctrl-C. Defaults to true.
Optional handleSIGTERMClose the browser process on SIGTERM. Defaults to true.
Optional headlessOptional ignoreIf true, Playwright does not pass its own configurations args and only uses the ones from
args. If an array is given,
then filters out the given default arguments. Dangerous option; use with care. Defaults to false.
Optional loggerLogger sink for Playwright logging.
Optional proxyNetwork proxy settings.
Optional bypass?: stringOptional comma-separated domains to bypass proxy, for example ".com, chromium.org, .domain.com".
Optional password?: stringOptional password to use if HTTP proxy requires authentication.
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.
Optional username?: stringOptional username to use if HTTP proxy requires authentication.
Optional slowSlows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on.
Optional timeoutMaximum time in milliseconds to wait for the browser instance to start. Defaults to 30000 (30 seconds). Pass 0
to disable timeout.
Optional tracesIf specified, traces are saved into this directory.
Generated using TypeDoc
NOTE Use custom browser args at your own risk, as some of them may break Playwright functionality.
Additional arguments to pass to the browser instance. The list of Chromium flags can be found here.