Skip to content
masterclass Buddy

Playwright · Function

expect.poll

expect.poll repeatedly calls a function and checks its returned value with a matcher. It stops when the check passes or the polling timeout is reached.

Last updated

Syntax

await expect.poll(callback, options).matcher(expected)

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

Subscribe
  • expect
  • expect.soft
  • expect.configure
  • expect.toPass

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