I have a unit test to do and I have to click on a Textview that is in the first position of a recyler view. I have this code
onView(withId(R.id.recyclerViewDevices))
.perform(actionOnItemAtPosition(0, click()));
but I want to click only in the textView that as the name of "CONNECT" and not in all the position. Can you help me?