theintern / intern

A next-generation code testing stack for JavaScript.
https://theintern.io/
Other
4.36k stars 309 forks source link

Support count assertions for findAllBy webdriver methods #1110

Open jason0x43 opened 4 years ago

jason0x43 commented 4 years ago

The findAllBy methods currently wait for at least one element to match the selector within the find timeout. These methods should support an optional count argument that would retry a findAllBy call until at least count items had been found. The call should still attempt to honor the standard find timeout.

See https://github.com/theintern/intern/issues/1019#issuecomment-587143910.