UiScrollable and UiSelector

Hi :slight_smile:

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

@shani play with some attributes like:

// new UiSelector().descriptionContains(”" + i + “”).clickable(true)
// or
// new UiSelector().descriptionContains(”" + i + “”).focusable(true)

Thanks for the quick reply
using focusable(true)/clickable(true) don’t solve it.
on the contrary, it wont even show me that RelativeLayout text.