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
connect(options: BrowserOptions & {
browserWSEndpoint?: string;
browserURL?: string;
transport?: ConnectionTransport;
2020-10-12 09:08:57 +00:00
product?: Product;
2020-06-04 14:56:45 +00:00
}): Promise< Browser > ;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
2020-10-12 09:08:57 +00:00
| options | [BrowserOptions ](./puppeteer.browseroptions.md ) & { browserWSEndpoint?: string; browserURL?: string; transport?: ConnectionTransport; product?: [Product ](./puppeteer.product.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