Find element with certain text inside another element using UISelector query

try:

new UiScrollable(new UiSelector().resourceIdMatches(\".*recycler_view").scrollable(true))
.scrollIntoView(new UiSelector().resourceIdMatches(\".*name\").text(\"Test Group\"))";

or

new UiScrollable(new UiSelector().scrollable(true))
.scrollIntoView(new UiSelector().resourceIdMatches(\".*name\").text(\"Test Group\"))";
1 Like