Skip to main content
Version: 23.8.0

BrowserConnectOptions interface

Generic browser options that can be passed when launching any browser or when connecting to an existing browser instance.

Signature

export interface BrowserConnectOptions

Properties

Property

Modifiers

Type

Description

Default

acceptInsecureCerts

optional

boolean

Whether to ignore HTTPS errors during navigation.

false

defaultViewport

optional

Viewport | null

Sets the viewport for each page.

'{width: 800, height: 600}'

protocol

optional

ProtocolType

Determined at run time:

  • Launching Chrome - 'cdp'.

  • Launching Firefox - 'webDriverBiDi'.

  • Connecting to a browser - 'cdp'.

protocolTimeout

optional

number

Timeout setting for individual protocol (CDP) calls.

180_000

slowMo

optional

number

Slows down Puppeteer operations by the specified amount of milliseconds to aid debugging.

targetFilter

optional

TargetFilterCallback

Callback to decide if Puppeteer should connect to a given target or not.