Playwright · Function
expect
Playwright's expect function checks values and web conditions. Web assertions retry until they pass or the assertion timeout is reached; the default timeout is 5 seconds.
Last updated
Syntax
expect(value).matcher(expected)
await expect(locator).matcher(expected)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
expect.pollexpect.toPassexpect.softexpect.configureexpect.extendtest.info().errors