Skip to content
masterclass Buddy

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.

Subscribe
  • Locator
  • getByRole
  • toBeChecked
  • isDisabled
  • isEnabled

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