Skip to main content
Version: 23.10.1

Locator.setWaitForStableBoundingBox() 方法

¥Locator.setWaitForStableBoundingBox() method

通过克隆当前定位器并指定定位器是否必须等待元素的边界框在两个连续的动画帧之间相同来创建一个新的定位器实例。

¥Creates a new locator instance by cloning the current locator and specifying whether the locator has to wait for the element's bounding box to be same between two consecutive animation frames.

签名

¥Signature

class Locator {
setWaitForStableBoundingBox<ElementType extends Element>(
this: Locator<ElementType>,
value: boolean,
): Locator<ElementType>;
}

参数

¥Parameters

范围

类型

描述

this

定位器<元素类型>

value

boolean

Returns:

Locator<ElementType>

默认值:

¥Default value:

true