Hi, Scrolling mobile app page by TouchAction working fine.
using longPress(startx,starty).moveTo(endx,endy) methods.
Before setup : Enable "Pointer location " in Developer options to get Location of your mobile app.
Code part
System.out.println("Page scrolling down ");
Dimension dim = driver.manage().window().getSize();
int height = dim.getHeight();
int width = dim.getWidth();
int x = height/2;
int starty1 = (int)(height * 0.80);
int endy1 = (int)(height * 0.20);
TouchAction scrollto = new TouchAction((MobileDriver) driver).longPress(x,starty1).moveTo(0, endy1).release();
scrollto.perform();
Thread.sleep(5000);
System.out.println("Page scrolling completed");
Thread.sleep(5000);
System.out.println("folder clicking ");
WebElement Autobkupfile = driver.findElement(MobileBy.name("Folder Name "));
if(Autobkupfile.equals(Autobkupfile))
{
Autobkupfile.click();
}
Thread.sleep(5000);