2022-07-05 13:41:43 +00:00
---
sidebar_label: BrowserLaunchArgumentOptions
---
# BrowserLaunchArgumentOptions interface
Launcher options that only apply to Chrome.
2022-10-24 07:07:05 +00:00
#### Signature:
2022-07-05 13:41:43 +00:00
```typescript
export interface BrowserLaunchArgumentOptions
```
## Properties
2024-03-20 15:03:14 +00:00
< table > < thead > < tr > < th >
Property
< / th > < th >
Modifiers
< / th > < th >
Type
< / th > < th >
Description
< / th > < th >
Default
< / th > < / tr > < / thead >
< tbody > < tr > < td >
2024-04-11 11:01:13 +00:00
< span id = "args" > args< / span >
2024-03-20 15:03:14 +00:00
< / td > < td >
`optional`
< / td > < td >
string\[\]
< / td > < td >
Additional command line arguments to pass to the browser instance.
< / td > < td >
< / td > < / tr >
< tr > < td >
2024-04-11 11:01:13 +00:00
< span id = "debuggingport" > debuggingPort< / span >
2024-03-20 15:03:14 +00:00
< / td > < td >
`optional`
< / td > < td >
number
< / td > < td >
Specify the debugging port number to use
< / td > < td >
< / td > < / tr >
< tr > < td >
2024-04-11 11:01:13 +00:00
< span id = "devtools" > devtools< / span >
2024-03-20 15:03:14 +00:00
< / td > < td >
`optional`
< / td > < td >
boolean
< / td > < td >
Whether to auto-open a DevTools panel for each tab. If this is set to `true` , then `headless` will be forced to `false` .
< / td > < td >
`false`
< / td > < / tr >
< tr > < td >
2024-04-11 11:01:13 +00:00
< span id = "headless" > headless< / span >
2024-03-20 15:03:14 +00:00
< / td > < td >
`optional`
< / td > < td >
boolean \| 'shell'
< / td > < td >
Whether to run the browser in headless mode.
2024-04-29 12:50:39 +00:00
**Remarks:**
- `true` launches the browser in the [new headless ](https://developer.chrome.com/articles/new-headless/ ) mode.
- `'shell'` launches [shell ](https://developer.chrome.com/blog/chrome-headless-shell ) known as the old headless mode.
2024-03-20 15:03:14 +00:00
< / td > < td >
`true`
< / td > < / tr >
< tr > < td >
2024-04-11 11:01:13 +00:00
< span id = "userdatadir" > userDataDir< / span >
2024-03-20 15:03:14 +00:00
< / td > < td >
`optional`
< / td > < td >
string
< / td > < td >
Path to a user data directory. [see the Chromium docs ](https://chromium.googlesource.com/chromium/src/+/refs/heads/main/docs/user_data_dir.md ) for more info.
< / td > < td >
< / td > < / tr >
< / tbody > < / table >