In my appium test suite I am using
@AndroidFindBy(uiAutomator = "new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(new UiSelector().description(\"Description\"))")
private WebElement elementToScrollTo;
elementToScrollTo.click();
to find then click on an element. Only problem is in searching it starts by swipping from top to bottom before sipping bottom to top. The top to bottom swipe refreshes my app page and causes the test to fail.
How can I set the UiAutomator UiScrollable to start the search by swiping bottom to top(Scrolling down) instead?