Hi,
I have a screen where I have more than one RecyclerViews. What I want is to scroll child RecyclerView of a parent recyclerView and scroll till a text appears.
What I have tried so far
-
driver.findElement(AppiumBy.androidUIAutomator(“new UiScrollable(new UiSelector()).scrollIntoView(text("”+text+“"));”));
-
driver.findElement(AppiumBy.androidUIAutomator(“new UiScrollable(new UiSelector().className("androidx.recyclerview.widget.RecyclerView")).scrollIntoView(” +
“new UiSelector().className("android.widget.TextView").text("” + text + “"))”)); -
driver.findElement(AppiumBy.androidUIAutomator(“new UiScrollable(new UiSelector().resourceIdMatches("rvModifiers").scrollable(true)).scrollIntoView(new UiSelector().text("” + text + “"))”));
-
driver.findElement(AppiumBy.androidUIAutomator(“new UiScrollable(new UiSelector().resourceIdMatches("rvModifiers").instance(1)).scrollIntoView(new UiSelector().text("” + text + “"))”));
-
driver.findElement(AppiumBy.androidUIAutomator(“new UiScrollable(new UiSelector().scrollable(true).instance(0)).scrollIntoView(new UiSelector().textContains("”+text+“").instance(0))”));