I am automating hybrid app. I want click on sign out which is not visible on the page and hence I need to scroll down to click on it. I am trying with below code but it's not working and I am using Java client 5.0.4 Appium server 1.7.2 and selenium 3.9.1 and Java jdk version 1.8.0_161. Can any one please help
JavascriptExecutor js = (JavascriptExecutor)driver;
HashMap<String, String> scrollObject = new HashMap<String, String>();
scrollObject.put("direction", "down");
js.executeScript("mobile: scroll", scrollObject);
do
{
try{
ele1.click();
break;
}
catch(Exception e){
js.executeScript("mobile: scroll", scrollObject);
}
} while(true);
