This Question have no Text answers yet!

How to click on a button within a recycler view item using espresso?

By : Vivek
Source: Stackoverflow.com
Question!

Just to take an example, say my recycler view(with id "list") is this Gmail Inbox

enter image description here

I already know onView(withId(R.id.list)).perform(RecyclerViewActions.actionOnItemAtPosition(1, click()); let's me to open the second email.

But how do I just click on the star button of the second email with espresso ?

By : Vivek


Video about How to click on a button within a recycler view item using espresso?