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](./puppeteer.locator.md)<NodeType>
value boolean

Returns:

Locator<NodeType>

Default value:

true