testing-samples
testing-samples copied to clipboard
How to get the button view in the recycleview ?
Hi,
- The button is child of recycleview,
- Text and id of button are same. So how could I get the button view with position 1 in recycleview ?
Thanks. brs.
If the button is Holder item of your recycler view then you can use this: onView(withId(R.id.recycler_view_id)).perform(RecyclerViewActions.actionOnItemAtPosition(1, click()))