I am using espresso-contrib to perform actions on a RecyclerView, and it works as it should, ex:
onView(withId(R.id.recycler_view))
.perform(Rec
Danny Roa's solution is awesome, but it didn't work for the off-screen items I had just scrolled to. The fix is replacing this:
View targetView = recyclerView.getChildAt(this.position)
.findViewById(this.viewId);
with this:
View targetView = recyclerView.findViewHolderForAdapterPosition(this.position)
.itemView.findViewById(this.viewId);
... in the TestUtils class.