Используйте метод ниже для прокрутки вниз / вверх:
public static void swipeVertical(AppiumDriver driver, double startPercentage, double finalPercentage, double anchorPercentage, int duration) throws Exception {
Dimension size = driver.manage().window().getSize();
int anchor = (int) (size.width * anchorPercentage);
int startPoint = (int) (size.height * startPercentage);
int endPoint = (int) (size.height * finalPercentage);
new TouchAction(driver).press(anchor, startPoint).waitAction(Duration.ofMillis(duration)).moveTo(anchor, endPoint).release().perform();
}
Вызовите метод выше по:
Для прокрутки вверх: swipeVertical((AppiumDriver)driver,0.9,0.1,0.5,3000);
Для прокрутки вниз: swipeVertical((AppiumDriver)driver,0.1,0.9,0.5,3000);