onView(first(allOf(hasSibling(withText(testAddress)), withId(R.id.options)))).perform(click())
R.id.options is the id of the button
testAddress is a val with the text of the associated (sibling) text view
No hay comentarios:
Publicar un comentario