I am using Appium and selenium web driver for Android application automation testing , Since last 3 weeks I am noticing that when I try to find elements with array , Appium find it continue at least for 2 minutes always and I want to make that time like 30 seconds.
My Code is here :
List uploaderror = driver.findElements(By.xpath(AppConstants.uploaderror));
if(uploaderror.size()<=0)
{
//Do Something
}
In above code I am trying to find multiple elements and depends on element size I apply further action. Issue is appium takes very long time to find element , I want to control that time. I have tried all types of waits but no success.
Please let me know if anyone already faced this and resolved.