Files
puppeteer/website/versioned_docs/version-25.4.0/api/puppeteer.locator.setwaitforenabled.md
browser-automation-botGitHubrelease-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
4d7b677d1d chore: release main (#15201)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2026-07-27 14:29:23 +02:00

836 B

sidebar_label
sidebar_label
Locator.setWaitForEnabled

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