Hi,
I am using Appium Studio 11.7.103 and executed the scripts using eclipse.I had created my own framework for the android automation using pageobject model.
Problem: I am using below code.I am using this for the element to be visible and then continues the next functionality.
But the problem is after waiting if the element is not found the testcase fails and showing error in the eclipse console.But coming to the report it is displaying as pass.How to solve this issue I want to be failed if element not found.
public void waitforelement(By element){
try{
WebDriverWait wait = new WebDriverWait(driver, 30);
wait.until(ExpectedConditions.visibilityOfElementLocated(element));
}catch(Exception e){
e.printStackTrace();
Log_Message("Unable to find the element", "false");
}
}