Appium Scroll Examples for Android

Hi all,

I found this article about different ways to scroll in Android and it seems to answer a lot of doubts that are posted in this forum:

2 Likes

Hi all,
I am using java-client-5.0.4 for iOS simulator (Xcode8 iphone 6s) to perform the swiping bottom to top action.
I found that name of the API : public TouchAction moveTo(int x, int y) is misleading:

The correct approach should be:

action.press(startX, startY).waitAction(Duration.ofSeconds(2)).moveTo(deltaX, deltaY).release().perform();

Instead of:

action.press(startX, startY).waitAction(Duration.ofSeconds(2)).moveTo(endX, endY).release().perform();

Thanks.