You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a TabLayout with 2 tabs. Both contain RecyclerView with the same id.
I match the RecyclerView in the second tab using withIndex(1) { withId(R.id.recyclerView) }
Now if I try to do any child matching with the RecyclerView inside second tab, it fails. (childAt, childWith, etc).
Observed Results:
androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: view holder at 0 position of recycler view: (1th view with: (view.getId() is <2131363464/com.package.name.debug:id/recyclerView>))
Expected Results:
I am expecting it to match the children of the RecyclerView inside the second tab.
Note that matching child items of the RecyclerView inside the first tab (withIndex(0)) works properly.
@jermainedilao could you create a Pull Request to reproduce your issue. By sample provided by you - it looks definitely incorrect. For issues like that I can suggest you use support chat in Telegram. Link can be found in repo README
Steps to reproduce:
withIndex(1) { withId(R.id.recyclerView) }
Observed Results:
androidx.test.espresso.NoMatchingViewException: No views in hierarchy found matching: view holder at 0 position of recycler view: (1th view with: (view.getId() is <2131363464/com.package.name.debug:id/recyclerView>))
Expected Results:
I am expecting it to match the children of the RecyclerView inside the second tab.
Note that matching child items of the RecyclerView inside the first tab (
withIndex(0)
) works properly.Relevant Code:
This is how I match my RecyclerViews.
Is there something wrong with how it is set up? Please help.
The text was updated successfully, but these errors were encountered: