testdevlab / TestUI

MIT License
32 stars 9 forks source link

`elementUI` is not populated in `waitUntilAllVisible()` #84

Open aleksslitvinovs opened 1 year ago

aleksslitvinovs commented 1 year ago

In TestUI.waitUntilAllVisible() it is iterated over elementUI even though it is never populated and hence this function doesn't work

alvarolaserna commented 1 year ago

This is not entirely true. The way to use that method is that you have to define multiple elements like this:

EE(E(by.cssSelector("css"), E(by.cssSelector("css2"), E(by.cssSelector("css3")).waitUntilAllVisible()

Then it will wait untill all the element definitions have been found. I guess I could change the method to use the regular waitUntilVisible if there is only one element defined.