2022-08-06 14:49:20 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Puppeteer.connect
|
|
|
|
---
|
|
|
|
|
|
|
|
# Puppeteer.connect() method
|
|
|
|
|
|
|
|
This method attaches Puppeteer to an existing browser instance.
|
|
|
|
|
2022-10-24 14:31:12 +00:00
|
|
|
#### Signature:
|
2022-08-06 14:49:20 +00:00
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Puppeteer {
|
|
|
|
connect(options: ConnectOptions): Promise<Browser>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2024-03-25 13:03:57 +00:00
|
|
|
<table><thead><tr><th>
|
2022-08-06 14:49:20 +00:00
|
|
|
|
2024-03-25 13:03:57 +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-08-06 14:49:20 +00:00
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<[Browser](./puppeteer.browser.md)>
|
|
|
|
|
|
|
|
Promise which resolves to browser instance.
|
|
|
|
|
|
|
|
## Remarks
|