Skip to content
masterclass Buddy

Playwright · Matcher

toBeChecked

toBeChecked() verifies that a Locator points to a checked input. It retries until the expected state is reached or the assertion times out.

Last updated

Since
v1.20

Syntax

await expect(locator).toBeChecked(options);

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

Subscribe
  • locator.check()
  • locator.setChecked()
  • LocatorAssertions.not
  • toBeDisabled
  • toBeEnabled

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