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
范围 🌐 Parameter | 类型 🌐 Type | 描述 🌐 Description |
|---|---|---|
this | Locator<ElementType> | |
value | boolean |
返回:
Locator<ElementType>
默认值:
🌐 Default value:
true