I have a RecyclerView (R.id.recyclerView) where each row has an image (R.id.row_image) and a TextView. I want to click on the image in the first row.
I\'ve tried to use
I followed @Gabor's answer but when I included the libraries, I hit the dex limit!
So, I removed the libraries, added this getInstrumentation().waitForIdleSync(); and then just called onView(withId...))...
Works perfectly.
In your case you will have multiple image views with the same ID so you will have to figure out something on how you can select the particular list item.