web-first assertion

A Playwright assertion that keeps rechecking the page until the condition is true or a timeout expires.

In more detail

Because pages update asynchronously, checking once is flaky and sleeping a fixed time is slow. Web-first assertions pass the moment the page is right.

Related terms

Taught in

References