Puppeteer 中文文档v25.8.0

Locator.waitHandle() 方法

等待定位器从页面获取句柄。

签名

class Locator {
  waitHandle(options?: Readonly<ActionOptions>): Promise<HandleFor<T>>;
}

参数

参数

类型

说明

options

Readonly<ActionOptions>

(可选)

返回值:

Promise<HandleFor<T>>