mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 05:37:20 +03:00
cfe92e1608
This patch implements `expect.poll()` method that polls given predicate until a given synchronous predicate completes. Usage: ```js // wait until page gets 3 frames. await expect.poll(() => page.frames().length, { timeout: 1000, message: 'custom error message', }).toBe(3); ``` Fixes #10235 |
||
---|---|---|
.. | ||
development | ||
src |