Skip to main content
Version: 23.5.0

Locator.waitHandle() 方法

¥Locator.waitHandle() method

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

¥Waits for the locator to get a handle from the page.

签名

¥Signature

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

参数

¥Parameters

范围

类型

描述

options

只读<ActionOptions>

(可选的)

Returns:

Promise<HandleFor<T>>