wd
wd copied to clipboard
Make waitForElementByXXX available into element context
I'd like to be able to use a waitForElementByXXX method to retrieve a subelement with a certain assertion.
browser
.elementByCssSelector('.foo')
.waitForElementByCssSelector('.bar', wd.asserters.isDisplayed)
Unfortunately, the above example will select the first .bar present in the page, not only the one within the .foo element.
It seem a fairly trivial need, is there some way to achieve it? Am I missing something? Let me know if you need more infos, and thanks for your work!
try .waitForElementByCssSelector('>','.bar', wd.asserters.isDisplayed)
Actually for waitForElement maybe is has never been implemented.
@sebv yeah, it seems from the code that it has not been implemented :/