You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking for suggestions, inputs or pointers on how to build an additional method or configuration for FluentWait that allows specifying maxAttempts(int attempts) ? I realize that I could put this inside a while loop and get the same result but just looking if there was better or alternate way.
I am interested to build something like
await().atMost(poll_duration.duration, TimeUnit.SECONDS)
.pollingEvery(poll_interval.interval, TimeUnit.MILLISECONDS)
.maxAttempts(5)
.withMessage(" still displayed").
until(webElement).not().displayed();
Is there value in adding such a capability to FluentWait ?
The text was updated successfully, but these errors were encountered:
I think it is the same like a poolingEvery, but with less controlled cycles. It combines the atMost value divided by polling factor. I think we don't need maxAttempts because it is indirectly implemented as I explained.
Looking for suggestions, inputs or pointers on how to build an additional method or configuration for FluentWait that allows specifying
maxAttempts(int attempts)
? I realize that I could put this inside a while loop and get the same result but just looking if there was better or alternate way.I am interested to build something like
Is there value in adding such a capability to FluentWait ?
The text was updated successfully, but these errors were encountered: