Just to take an example, say my recycler view(with id "list") is this Gmail Inbox
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 ?
Have a look at the following stackoverflow question: It creates a ViewAction that clicks a view object, identified by id, at a specific position in the recyclerView.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.