Skip to content
masterclass Buddy

Playwright · Matcher

toBeEnabled

toBeEnabled checks that a locator points to an enabled element. It retries until the check passes or its timeout is reached.

Last updated

Since
v1.20

Syntax

await expect(locator).toBeEnabled(options);

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • expect
  • LocatorAssertions
  • not
  • toBeDisabled

Source: LocatorAssertions | Playwright. Checked 2026-11-03.