mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: format docs (#8629)
This commit is contained in:
@@ -1,28 +1,29 @@
|
||||
---
|
||||
sidebar_label: Puppeteer.connect
|
||||
---
|
||||
# Puppeteer.connect() method
|
||||
|
||||
This method attaches Puppeteer to an existing browser instance.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
class Puppeteer {connect(options: ConnectOptions): Promise<Browser>;}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --- | --- | --- |
|
||||
| options | [ConnectOptions](./puppeteer.connectoptions.md) | Set of configurable options to set on the browser. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<[Browser](./puppeteer.browser.md)>
|
||||
|
||||
Promise which resolves to browser instance.
|
||||
|
||||
## Remarks
|
||||
|
||||
|
||||
---
|
||||
sidebar_label: Puppeteer.connect
|
||||
---
|
||||
|
||||
# Puppeteer.connect() method
|
||||
|
||||
This method attaches Puppeteer to an existing browser instance.
|
||||
|
||||
**Signature:**
|
||||
|
||||
```typescript
|
||||
class Puppeteer {
|
||||
connect(options: ConnectOptions): Promise<Browser>;
|
||||
}
|
||||
```
|
||||
|
||||
## Parameters
|
||||
|
||||
| Parameter | Type | Description |
|
||||
| --------- | ----------------------------------------------- | -------------------------------------------------- |
|
||||
| options | [ConnectOptions](./puppeteer.connectoptions.md) | Set of configurable options to set on the browser. |
|
||||
|
||||
**Returns:**
|
||||
|
||||
Promise<[Browser](./puppeteer.browser.md)>
|
||||
|
||||
Promise which resolves to browser instance.
|
||||
|
||||
## Remarks
|
||||
|
||||
Reference in New Issue
Block a user