ARTICLE AD BOX
I'm new to Appium automation on Android and running into a scrolling performance issue.
My current code:
python
driver.find_element( AppiumBy.ANDROID_UIAUTOMATOR, 'new UiScrollable(new UiSelector().scrollable(true))' '.scrollIntoView(new UiSelector().descriptionContains("' + description_part + '"))' )Problem: Every time scrollIntoView runs, it scrolls up to the top first, then scrolls down to find the element. This makes my tests very slow, especially when the target element just needs to scroll down.
What I've already tried:
Replacing .scrollIntoView(...) with .scrollForward() — this did not work.What I want: Scroll downward only, without resetting to the top, until the target element is found.
Is there a way to configure UiScrollable to scroll in one direction only, or an alternative approach that achieves the same result?
