Playwright · Method
locator.isChecked
locator.isChecked() returns whether a locator points to a checked checkbox or radio input. It returns a promise for a Boolean and throws for other element types.
Last updated
- Since
- v1.14
Syntax
await locator.isChecked(options);In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
LocatorgetByRoletoBeCheckedisDisabledisEnabled