Skip to main content
Version: 23.10.1

Puppeteer.connect() 方法

¥Puppeteer.connect() method

此方法将 Puppeteer 附加到现有浏览器实例。

¥This method attaches Puppeteer to an existing browser instance.

签名

¥Signature

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

参数

¥Parameters

范围

类型

描述

options

ConnectOptions

要在浏览器上设置的一组可配置选项。

Returns:

Promise<Browser>

解析为浏览器实例的 Promise。

¥Promise which resolves to browser instance.

备注

¥Remarks