testing-samples icon indicating copy to clipboard operation
testing-samples copied to clipboard

How to get the button view in the recycleview ?

Open MilkZS opened this issue 7 years ago • 1 comments

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.

MilkZS avatar Mar 13 '18 01:03 MilkZS

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()))

navnathkarche avatar May 01 '18 07:05 navnathkarche