ConnectOptions interface
Generic browser options that can be passed when launching any browser or when connecting to an existing browser instance.
Signature
export interface ConnectOptions
Properties
Property | Modifiers | Type | Description | Default |
|---|---|---|---|---|
| acceptInsecureCerts |
| boolean | Whether to ignore HTTPS errors during navigation. |
|
| browserURL |
| string | ||
| browserWSEndpoint |
| string | ||
| capabilities |
| WebDriver BiDi capabilities passed to BiDi Remarks: Only works for | ||
| defaultViewport |
| Viewport | null | Sets the viewport for each page. | '{width: 800, height: 600}' |
| downloadBehavior |
| Sets the download behavior for the context. | ||
| handleDevToolsAsPage |
| boolean | Whether to handle the DevTools windows as pages in Puppeteer. Supported only in Chrome with CDP. | 'false' |
| headers |
| Record<string, string> | Headers to use for the web socket connection. Remarks: Only works in the Node.js environment. | |
| networkEnabled |
| boolean | (Experimental) Experimental setting to disable monitoring network events by default. When set to |
|
| protocol |
| Determined at run time:
| ||
| protocolTimeout |
| number | Timeout setting for individual protocol (CDP) calls. |
|
| slowMo |
| number | Slows down Puppeteer operations by the specified amount of milliseconds to aid debugging. | |
| targetFilter |
| Callback to decide if Puppeteer should connect to a given target or not. | ||
| transport |
|