mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
33 lines
1.1 KiB
Markdown
33 lines
1.1 KiB
Markdown
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
||
|
|
||
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [launch](./puppeteer.launch.md)
|
||
|
|
||
|
## launch() function
|
||
|
|
||
|
Launches puppeteer and launches a browser instance with given arguments and options when specified.
|
||
|
|
||
|
<b>Signature:</b>
|
||
|
|
||
|
```typescript
|
||
|
export declare function launch(options?: LaunchOptions & BrowserLaunchArgumentOptions & BrowserConnectOptions & {
|
||
|
product?: Product;
|
||
|
extraPrefsFirefox?: Record<string, unknown>;
|
||
|
}): Promise<Browser>;
|
||
|
```
|
||
|
|
||
|
## Parameters
|
||
|
|
||
|
| Parameter | Type | Description |
|
||
|
| --- | --- | --- |
|
||
|
| options | [LaunchOptions](./puppeteer.launchoptions.md) & [BrowserLaunchArgumentOptions](./puppeteer.browserlaunchargumentoptions.md) & [BrowserConnectOptions](./puppeteer.browserconnectoptions.md) & { product?: [Product](./puppeteer.product.md); extraPrefsFirefox?: Record<string, unknown>; } | Set of configurable options to set on the browser. |
|
||
|
|
||
|
<b>Returns:</b>
|
||
|
|
||
|
Promise<[Browser](./puppeteer.browser.md)>
|
||
|
|
||
|
Promise which resolves to browser instance.
|
||
|
|
||
|
## Remarks
|
||
|
|
||
|
|