Hi
I am using UiSelector and UiScrollable for scrolling list and collecting data about each item in it for my android app.
I am selecting the element by its content description.
My code:
String i = “input”;
AndroidElement ae = (AndroidElement) driver.findElementByAndroidUIAutomator(“new UiScrollable(new UiSelector().scrollable(true)).scrollIntoView(new UiSelector().descriptionContains(”" + i + “”))");
Each item in the list is RelativeLayout and below it in the hierarchy it has TextView.
My problem is when I try to scroll to an item that is “half” viewed it wont scroll.
I guess beacuse it can see half of it so it counts “on screen”?
The issue is it wont collect the data I need. (the TextView)
Any suggestions how to handle it?
Thanks