puppeteer/website/versioned_docs/version-22.10.0/api/puppeteer.browserlaunchargumentoptions.md
release-please[bot] d963fcdd80
chore: release main (#12456)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2024-05-24 07:26:52 +00:00

1.7 KiB

sidebar_label
BrowserLaunchArgumentOptions

BrowserLaunchArgumentOptions interface

Launcher options that only apply to Chrome.

Signature:

export interface BrowserLaunchArgumentOptions

Properties

Property

Modifiers

Type

Description

Default

args

optional

string[]

Additional command line arguments to pass to the browser instance.

debuggingPort

optional

number

Specify the debugging port number to use

devtools

optional

boolean

Whether to auto-open a DevTools panel for each tab. If this is set to true, then headless will be forced to false.

false

headless

optional

boolean | 'shell'

Whether to run the browser in headless mode.

Remarks:

  • true launches the browser in the new headless mode.

  • 'shell' launches shell known as the old headless mode.

true

userDataDir

optional

string

Path to a user data directory. see the Chromium docs for more info.