Problem with Scroll Functionality in Appium after Upgrade

In our mobile app automation project using Java Selenium Appium, we encountered an issue where the scroll functionality stopped working effectively after upgrading Appium. Previously, everything functioned perfectly, but after the upgrade, scrolling behaves unpredictably. We’ve implemented various methods to address this issue, including scrolling to specific text or IDs and scrolling up/down once. However, these methods are not consistently stable across different pages within the app. For instance, while scrolling works on some pages, it fails on others, such as the store page with varying names and materials.

Even after setting up a custom framework in IntelliJ, the problem persists with the same app and identical conditions. We’re seeking assistance in determining which version of Appium and UIAutomator was stable for scrolling to potentially suggest downgrading. Alternatively, any other solutions or suggestions to resolve this matter would be greatly appreciated.

  1. how you scroll? add your code
  2. provide screenshot where it is not stable

and we possible can help you

Thanks Aleksei,

public static void scrollToText(AndroidDriver driver, String text) {
    String uiScrollableText = "new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(new UiSelector().text(\"" + text + "\"))";

public static void scrollToId(AndroidDriver driver, String id) {
    String uiScrollableId = "new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(new UiSelector().resourceId(\"" + id + "\"))";

I can also send a screenshot, but it is the same screen, only the material is different. The features are listed and there is a comment at the bottom that is not visible, I want to scroll there.

  1. do you have multiple scrollViews on screen?
  2. did you try add scroll direction? setAsHorizontalList or setAsVerticalList ?
  3. tried add setMaxSearchSwipes ?
  4. how it fails? more info? skip needed element or stops before ?

Swipe Tutorial - Appium