playwright-java icon indicating copy to clipboard operation
playwright-java copied to clipboard

[Feature] Implement assert.poll

Open mxschmitt opened this issue 3 years ago • 3 comments

https://playwright.dev/docs/next/test-assertions#polling

mxschmitt avatar May 30 '22 16:05 mxschmitt

As a workaround I have been using https://github.com/awaitility/awaitility

chaganiu avatar Jul 26 '22 18:07 chaganiu

This was opened 8 months ago. Curious if there's been enough interest to actually implement or it's just fallen off the roadmap entirely? Personally, there are use cases where I prefer toBeVisible() with pass / failure, and other times I actually just want the boolean from isVisible(). Having the ability to poll on a method like isVisible() greatly extends the usability for async functions when I'm testing the positive and negative outcomes in subsequent tests.

co510 avatar Jan 17 '23 16:01 co510

Hi, I would also be interested in a status update here. Atm we are using awaitily but I am wondering if it can be replacd with a playwright native feature

morepe avatar Aug 08 '23 12:08 morepe