Skip to main content
Version: 24.38.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

范围

🌐 Parameter

类型

🌐 Type

描述

🌐 Description

options

Readonly<ActionOptions>

(可选)

🌐 (Optional)

返回:

Promise<HandleFor<T>>