2020-06-04 14:56:45 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [puppeteer](./puppeteer.md) > [Puppeteer](./puppeteer.puppeteer.md) > [connect](./puppeteer.puppeteer.connect.md)
|
|
|
|
|
|
|
|
## Puppeteer.connect() method
|
|
|
|
|
2020-06-24 14:21:46 +00:00
|
|
|
This method attaches Puppeteer to an existing browser instance.
|
|
|
|
|
2020-06-04 14:56:45 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2020-10-13 15:19:26 +00:00
|
|
|
connect(options: ConnectOptions): Promise<Browser>;
|
2020-06-04 14:56:45 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-10-13 15:19:26 +00:00
|
|
|
| options | [ConnectOptions](./puppeteer.connectoptions.md) | Set of configurable options to set on the browser. |
|
2020-06-04 14:56:45 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
Promise<[Browser](./puppeteer.browser.md)<!-- -->>
|
|
|
|
|
2020-06-24 14:21:46 +00:00
|
|
|
Promise which resolves to browser instance.
|
|
|
|
|
|
|
|
## Remarks
|
|
|
|
|
|
|
|
|