2022-07-05 13:41:43 +00:00
|
|
|
---
|
|
|
|
sidebar_label: PuppeteerNode.connect
|
|
|
|
---
|
|
|
|
|
|
|
|
# PuppeteerNode.connect() method
|
|
|
|
|
|
|
|
This method attaches Puppeteer to an existing browser instance.
|
|
|
|
|
2022-10-24 07:07:05 +00:00
|
|
|
#### Signature:
|
2022-07-05 13:41:43 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class PuppeteerNode {
|
|
|
|
connect(options: ConnectOptions): Promise<Browser>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
<table><thead><tr><th>
|
2022-07-05 13:41:43 +00:00
|
|
|
|
2024-03-20 15:03:14 +00:00
|
|
|
Parameter
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Type
|
|
|
|
|
|
|
|
</th><th>
|
|
|
|
|
|
|
|
Description
|
|
|
|
|
|
|
|
</th></tr></thead>
|
|
|
|
<tbody><tr><td>
|
|
|
|
|
|
|
|
options
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
[ConnectOptions](./puppeteer.connectoptions.md)
|
|
|
|
|
|
|
|
</td><td>
|
|
|
|
|
|
|
|
Set of configurable options to set on the browser.
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</tbody></table>
|
2022-07-05 13:41:43 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<[Browser](./puppeteer.browser.md)>
|
|
|
|
|
|
|
|
Promise which resolves to browser instance.
|