LaunchOptions
Namespace: Glutinum.Playwright Parent: Glutinum.Playwright.global
type LaunchOptions abstract property handleSIGTERM : bool option with get abstract property firefoxUserPrefs : firefoxUserPrefs option with get abstract property artifactsDir : string option with get abstract property env : env option with get abstract property slowMo : float option with get abstract property executablePath : string option with get abstract property proxy : proxy option with get abstract property headless : bool option with get abstract property handleSIGHUP : bool option with get abstract property ignoreDefaultArgs : U2<bool, ResizeArray<string>> option with get abstract property args : ResizeArray<string> option with get abstract property channel : string option with get abstract property timeout : float option with get abstract property chromiumSandbox : bool option with get abstract property handleSIGINT : bool option with get abstract property tracesDir : string option with get abstract property downloadsPath : string option with get
Properties
Close the browser process on SIGTERM. Defaults to true.
Firefox user preferences. Learn more about the Firefox user preferences at
about:config.
You can also provide a path to a custom policies.json file via
PLAYWRIGHT_FIREFOX_POLICIES_JSON environment variable.
If specified, artifacts (traces, videos, downloads, HAR files, etc.) are saved into this directory. The directory is not cleaned up when the browser closes. If not specified, a temporary directory is used and cleaned up when the browser closes.
Slows down Playwright operations by the specified amount of milliseconds. Useful so that you can see what is going on.
Path 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.
Network proxy settings.
Close the browser process on SIGHUP. Defaults to true.
If 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.
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.
Browser 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.
Maximum time in milliseconds to wait for the browser instance to start. Defaults to 30000 (30 seconds). Pass 0
to disable timeout.
Enable Chromium sandboxing. Defaults to false.
Close the browser process on Ctrl-C. Defaults to true.
If specified, traces are saved into this directory.
If 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.