I have been looking over the espresso samples but they only give direct methods to perform click at some position using below method
actionOnItemAtPosition
In most cases we would be needing to click on one of the multiple child on item at some position. Like a TextView, ImageView and Checkbox.
I dont see any simple way to reach to Checkbox at position 25 if my Recyclerview has 50 items. Can anyone has any simple solution for it other than Defining my own ViewAction implementation.
You can create your own
withIndex
matcher like this:Usage example