testing-samples icon indicating copy to clipboard operation
testing-samples copied to clipboard

UIScrollable.getChildByDescription - reload data while executed scrollToBeginning in the method

Open TJuliaV opened this issue 5 years ago • 0 comments

When UIScrollable.getChildByDescription starts working, first it does scrollToBeginning (which provokes updating of the list if the list is at the beginning), and only then it scrolls down and finds the desired element. How can I disable updating the list if the list is already at the beginning?

scrollToBeginning: https://android.googlesource.com/platform/frameworks/testing/+/f612e6a05f47b28ae0f5715545658c08dd759dd7/uiautomator/library/src/com/android/uiautomator/core/UiScrollable.java#210

TJuliaV avatar Nov 19 '20 06:11 TJuliaV