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.
class Locator {
setWaitForEnabled<NodeType extends Node>(
this: Locator<NodeType>,
value: boolean,
): Locator<NodeType>;
}
Parameter | Type | Description |
---|---|---|
this | [Locator](./puppeteer.locator.md)<NodeType> | |
value | boolean |
Returns:
Locator<NodeType>
true