LaunchOptions interface
Generic launch options that can be passed when launching any browser.
Signature
export interface LaunchOptions
Properties
Property | Modifiers | Type | Description | Default |
---|---|---|---|---|
browser |
| Which browser to launch. |
| |
channel |
| Chrome Release Channel | ||
dumpio |
| boolean | If true, pipes the browser process stdout and stderr to |
|
env |
| Record<string, string | undefined> | Specify environment variables that will be visible to the browser. | The contents of |
executablePath |
| string | Path to a browser executable to use instead of the bundled browser. Note that Puppeteer is only guaranteed to work with the bundled browser, so use this setting at your own risk. Remarks: When using this is recommended to set the | |
extraPrefsFirefox |
| Record<string, unknown> | Additional preferences that can be passed when launching with Firefox. | |
handleSIGHUP |
| boolean | Close the browser process on |
|
handleSIGINT |
| boolean | Close the browser process on |
|
handleSIGTERM |
| boolean | Close the browser process on |
|
ignoreDefaultArgs |
| boolean | string[] | If |
|
pipe |
| boolean | Connect to a browser over a pipe instead of a WebSocket. Only supported with Chrome. |
|
timeout |
| number | Maximum time in milliseconds to wait for the browser to start. Pass |
|
waitForInitialPage |
| boolean | Whether to wait for the initial page to be ready. Useful when a user explicitly disables that (e.g. |
|