Skip to content
masterclass Buddy

Playwright · Matcher

toBeEditable

Playwright assertions use expect and matchers to check values and browser state. Web assertions retry until the condition passes or the assertion timeout is reached.

Last updated

Syntax

await expect(locator).toHaveText(expected, options?)

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

Subscribe
  • expect
  • toHaveText
  • toBeVisible
  • toBeHidden
  • toHaveURL
  • toHaveTitle
  • toBeOK
  • not

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