# Problem with Scroll Functionality in Appium after Upgrade

**URL:** <https://discuss.appium.io/t/problem-with-scroll-functionality-in-appium-after-upgrade/41943>\
**Category:** Support\
**Created:** [March 14, 2024, 8:34am UTC](https://discuss.appium.io/t/problem-with-scroll-functionality-in-appium-after-upgrade/41943 "2024-03-14T08:34:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fatih](https://discuss.appium.io/user_avatar/discuss.appium.io/fatih/32/12710_2.png) [@Fatih](https://discuss.appium.io/u/Fatih)\
**Post date:** [March 14, 2024, 8:34am UTC](https://discuss.appium.io/t/problem-with-scroll-functionality-in-appium-after-upgrade/41943/1 "2024-03-14T08:34:33Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [March 14, 2024, 11:12am UTC](https://discuss.appium.io/t/problem-with-scroll-functionality-in-appium-after-upgrade/41943/2 "2024-03-14T11:12:52Z")

</div>

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

and we possible can help you

---

<div class="post-metadata">

**Author:** ![Fatih](https://discuss.appium.io/user_avatar/discuss.appium.io/fatih/32/12710_2.png) [@Fatih](https://discuss.appium.io/u/Fatih)\
**Post date:** [March 14, 2024, 11:59am UTC](https://discuss.appium.io/t/problem-with-scroll-functionality-in-appium-after-upgrade/41943/3 "2024-03-14T11:59:48Z")

</div>

Thanks Aleksei,

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

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

```

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.

---

<div class="post-metadata">

**Author:** ![Aleksei](https://discuss.appium.io/user_avatar/discuss.appium.io/aleksei/32/6267_2.png) [@Aleksei](https://discuss.appium.io/u/Aleksei)\
**Post date:** [March 14, 2024, 1:02pm UTC](https://discuss.appium.io/t/problem-with-scroll-functionality-in-appium-after-upgrade/41943/4 "2024-03-14T13:02:53Z")

</div>

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](https://appium.github.io/appium.io/docs/en/writing-running-appium/tutorial/swipe-tutorial/) →
