puppeteer/docs/browsers-api/browsers.launchoptions.md

205 lines
1.5 KiB
Markdown

---
sidebar_label: LaunchOptions
---
# LaunchOptions interface
#### Signature:
```typescript
export interface LaunchOptions
```
## Properties
<table><thead><tr><th>
Property
</th><th>
Modifiers
</th><th>
Type
</th><th>
Description
</th><th>
Default
</th></tr></thead>
<tbody><tr><td>
<span id="args">args</span>
</td><td>
`optional`
</td><td>
string\[\]
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="detached">detached</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="dumpio">dumpio</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="env">env</span>
</td><td>
`optional`
</td><td>
Record&lt;string, string \| undefined&gt;
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="executablepath">executablePath</span>
</td><td>
</td><td>
string
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="handlesighup">handleSIGHUP</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="handlesigint">handleSIGINT</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="handlesigterm">handleSIGTERM</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="onexit">onExit</span>
</td><td>
`optional`
</td><td>
() =&gt; Promise&lt;void&gt;
</td><td>
</td><td>
</td></tr>
<tr><td>
<span id="pipe">pipe</span>
</td><td>
`optional`
</td><td>
boolean
</td><td>
</td><td>
</td></tr>
</tbody></table>