Skip to main content
Version: 23.5.0

Locator.wait() 方法

¥Locator.wait() method

等待定位器从页面获取序列化值。

¥Waits for the locator to get the serialized value from the page.

请注意,这要求该值是 JSON 可序列化的。

¥Note this requires the value to be JSON-serializable.

签名

¥Signature

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

参数

¥Parameters

范围

类型

描述

options

只读<ActionOptions>

(可选的)

Returns:

Promise<T>