I have a list of items and want to scroll using xpath and the specific or partial text. This is what I have tried but could not succeed.
MobileElement item = (MobileElement) driver.findElement(MobileBy.AndroidUIAutomator(
"new UiScrollable(new UiSelector().scrollable(true)).setAsVerticalList()" +
".scrollIntoView(new UiSelector().xpath(\"//android.widget.TextView[@resource-id='com.appname/TextName' and contains(@text, 'Search_for_this_full_text')]\"))"));