Playwright · Matcher
toBeDisabled
toBeDisabled() checks that a locator points to a disabled element. It retries until the check passes or the assertion timeout is reached.
Last updated
- Since
- v1.20
Syntax
await expect(locator).toBeDisabled();In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expectLocatortoBeEnabledtoBeEditableisDisabledTestConfig.expect