Reputation: 829
How to find an element which is not visible but enabled or clickable in Appium?
I have few elements in an android app who aren't visible but enabled/clickable. I want to wait for these element(s).
Upvotes: 0
Views: 1283
Reputation: 1370
Use this to wait for the element which is not visible:
WebDriverWait wait = new WebDriverWait(driver, 10);
wait.until(ExpectedConditions
.invisibilityOfElementLocated(ByLocator(locator)));
Upvotes: 0
Reputation: 443
Use ExpectedConditions:
(new WebDriverWait(driver,
15))
.until(ExpectedConditions.visibilityOfElementLocated(By
.id("")));
Upvotes: 1