Skip to content
masterclass Buddy

Playwright · Matcher

toHaveValues

Playwright assertions use expect with generic matchers and web-specific matchers. Web assertions retry until the condition passes or the assertion timeout is reached.

Last updated

Since
1.9

Syntax

expect(value).matcher(expected?, options?)

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

Subscribe
  • expect
  • expect.poll
  • expect.toPass
  • LocatorAssertions
  • toHaveText
  • toBeOK
  • GenericAssertions

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