Hi, everyone, I just started learning appium automation on android. I’ve been facing an issue related to scrolling to find an element. I want to scroll till the element is found, however, when i use this scrollIntoView, the test always scroll up first before scroll down, and this action really make my test script very time consuming. I tried replacing the .scrollIntoView(…) with .scrollForward(), but it is not working. Can I ask for help how I can make this work? Thanks.
driver.find_element(
AppiumBy.ANDROID_UIAUTOMATOR,
'new UiScrollable(new UiSelector().scrollable(true))'
'.scrollIntoView(new UiSelector().descriptionContains("' + description_part + '"))'