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.
SubscribeRelated
expectLocatorAssertionsnottoBeDisabled