简体   繁体   中英

Why is the waitUntil method protected for ElementsCollection?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM