Platform you are automating : Android N (7.0)
Appium version : 1.6.3 (installed by "npm install -g appium" command)
Simulator/Emulator or Real Device : Real Device
The language you are using for writing tests (client binding) : Java
Your OS : Windows 10
I'm having trouble with explicit wait, it just doesn't work at all while implicit wait works fine
I thought it might be server problem since it's not stable version, but actually I have to use Android N, I cannot use stable version of server (1.4.16) - this doesn't look to support Android N yet
here's my snippet of explicit wait, please help thanks!
public boolean uiSelectorIsDisplayed(AndroidDriver driver, String method, String value, int waitTime) throws InterruptedException {
try {
(new WebDriverWait(driver, waitTime)).until(ExpectedConditions.visibilityOf(
driver.findElementByAndroidUIAutomator("" + "new UiSelector()."
+ method + "(\"" + value + "\")")));
log.info("Element is found by " + method + "=" + value);
return true;
} catch (NoSuchElementException e) {
log.info("Element NOT found by " + method + "=" + value);
return false;
}
}