I am using appium 1.4.8 on mac and I'm automating native app using selenium. I am stuck in a situation where I need to tap each element in a list. I wrote below code:
List allKeywords=driver.findElements(By.xpath("//UIAApplication[1]/UIAWindow[2]/UIATableView[]/"));
System.out.println("TEST TAPS ON THE EVENT SENT BY EXCEL SUCCESSFULLY "+allKeywords.size());
for(int j=0; j<=allKeywords.size(); j++){
try{
Thread.sleep(4000);
allKeywords.get(j).click();
System.out.println("TEST TAPS ON THE EACH KEYWORDS ");
}
catch(WebDriverException e ){
e.printStackTrace();
captureScreenshot(driver, "tagsTappingImg");
}
}
But I am getting an error message :
org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 772 milliseconds.
This error is shown when control tries to tap on next to the first element.