scrolling is working fine in normal pages in android application.But if i click on any element it will open as a new page over existing page,there scrolling is not working in appium automation using touchaction.here is my code to scrolldown
public void scrollDown(AppiumDriver driver){
try {
int height = driver.manage().window().getSize().getHeight();
TouchAction touchAction = new TouchAction(driver);
touchAction.longPress(5, height * 2 / 3).moveTo(5, height / 3).release().perform();
}
catch(Exception e) {
e.getMessage();
}
}
created
Nov '18
last reply
Dec '18
- 2
replies
- 128
views
- 2
users