I Have Have a list if recycler views in different positions in screen.
Like below
- I want to click on specific recycler view based on the variable text 'Job#' Inside it.
- But cannot perform the same as I do not know the exact position I should click.
The position of recycler view keeps changing. Tried below code but it clicks on static position '6'
recyclerView = onView( allOf(withId(R.id.recycler_view), isDisplayed())); recyclerView.perform(actionOnItemAtPosition(6, click()));
I want to know the proper position dynamically.