Skip to main content
Version: 23.9.0

Locator.setWaitForEnabled() method

Creates a new locator instance by cloning the current locator and specifying whether to wait for input elements to become enabled before the action. Applicable to click and fill actions.

Signature

class Locator {
setWaitForEnabled<NodeType extends Node>(
this: Locator<NodeType>,
value: boolean,
): Locator<NodeType>;
}

Parameters

Parameter

Type

Description

this

Locator<NodeType>

value

boolean

Returns:

Locator<NodeType>

Default value:

true