As you can see in the documentation, the waitUntil
method is protected for ElementsCollection
:
http://selenide.org/javadoc/3.7/com/codeborne/selenide/ElementsCollection.html
This is not the case for SelenideElement
for example:
http://selenide.org/javadoc/3.7/com/codeborne/selenide/SelenideElement.html
Why is the method protected for ElementsCollection
?
I think the idea behind this is that it make sense to apply waitUntil
+ visible/disappear/hasText/etc. Condition combination for single element, but totally useless to collection of elements and potentially buggy.
There is no way to set how many elements should disappear or should appear while you are waiting, taking in account performance cost it may bring - that was the right decision.