I have tried with below coding to scroll the mobile web page .But,the scroll doesn't happening,it throws error message as element not found.
TouchActions action = new TouchActions(driver).scroll(0, 100);
action.perform();
I have tried with below coding to scroll the mobile web page .But,the scroll doesn't happening,it throws error message as element not found.
TouchActions action = new TouchActions(driver).scroll(0, 100);
action.perform();
you can easily notice that selendroid does not have scroll. http://selendroid.io/gestures.html As you can see on project website you should try:
#Please import: org.openqa.selenium.interactions.touch.TouchActions
WebElement pages = driver.findElement(By.id("vp_pages"));
TouchActions flick = new TouchActions(driver).flick(pages, -100, 0, 0);
flick.perform();
and if you just want to scroll from top to the down then change:
.flick(pages, -100, 0, 0);
to
.flick(pages, 0, 100, 0);