Back to Puppeteer

Puppeteer.connect() method

docs/api/puppeteer.puppeteer.connect.md

19.2.2610 B
Original Source

Puppeteer.connect() method

This method attaches Puppeteer to an existing browser instance.

Signature

typescript
class Puppeteer {
  connect(options: ConnectOptions): Promise<Browser>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

options

</td><td>

ConnectOptions

</td><td>

Set of configurable options to set on the browser.

</td></tr> </tbody></table>

Returns:

Promise<Browser>

Promise which resolves to browser instance.

Remarks