I’m trying to implement scroll through a list view on android native app to find an element.
I have tried following different methods where from is the WebElement for the last index item on the listView and to is the first WebElement:
- new TouchAction(driver).press(.moveTo(to).waitAction(Duration.ofMillis(1000)).release().waitAction(Duration.ofMillis(1000)).perform();
- new TouchAction(driver).waitAction(Duration.ofMillis(1000)).press(.moveTo(to).release().perform();
The best it does is swipe up but skipped around 4 list items on the next list of elements.
Is there a right way to swipe up through a complete list to get a new list in the listView?