LaunchOptions interface
Generic launch options that can be passed when launching any browser.
Signature
export interface LaunchOptions extends ConnectOptions
Extends: ConnectOptions
Properties
| Property | Modifiers | Type | Description | Default | 
|---|---|---|---|---|
| args | 
 | string[] | Additional command line arguments to pass to the browser instance. | |
| browser | 
 | Which browser to launch. | 
 | |
| channel | 
 | If specified for Chrome, looks for a regular Chrome installation at a known system location instead of using the bundled Chrome binary. | ||
| debuggingPort | 
 | number | Specify the debugging port number to use | |
| devtools | 
 | boolean | Whether to auto-open a DevTools panel for each tab. If this is set to  | 
 | 
| dumpio | 
 | boolean | If true, pipes the browser process stdout and stderr to  | 
 | 
| enableExtensions | 
 | boolean | string[] | If  | |
| 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  | 
 | 
| headless | 
 | boolean | 'shell' | Whether to run the browser in headless mode. Remarks: 
 | 
 | 
| 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  | 
 | 
| userDataDir | 
 | string | Path to a user data directory. see the Chromium docs for more info. | |
| waitForInitialPage | 
 | boolean | Whether to wait for the initial page to be ready. Useful when a user explicitly disables that (e.g.  | 
 |