puppeteer/website/versioned_docs/version-22.6.3/api/puppeteer.browserconnectoptions.md
release-please[bot] a63b8305ac
chore: release main (#12190)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-04-05 13:11:52 +00:00

1.5 KiB

sidebar_label
BrowserConnectOptions

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

defaultViewport

optional

Viewport | null

Sets the viewport for each page.

'{width: 800, height: 600}'

ignoreHTTPSErrors

optional

boolean

Whether to ignore HTTPS errors during navigation.

false

protocol

optional

ProtocolType

'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.