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.
SubscribeRelated
expectexpect.softexpect.configureexpect.toPass