Scroll to Text with screen having multiple RecyclerViews

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))”));

1.why id “rvModifiers” while you have on screenshot long id starting from “aio…” ?
2. what happens with your tries?
3. on your screenshot looks like not scrolling view
4. finally better try scroll by coordinates/ examples only update TouchAction to new W3C commands (first link in search) or android mobile gesture

  1. Because the prefix contains app environment. We need to run tests on different environments.
  2. The scroll does not happen. Neither an exception is thrown.
  3. Recycler view is used instead of scrollView
  1. in such case it should be like e.g. resourceIdMatches(".*rvModifiers")
  2. scroll also no happen with main parent recycle view?