Helper to click on recycler view item by name #380
taylors1512
started this conversation in
Ideas
Replies: 1 comment
-
Hi @smxt! Thanks for the suggestion! It sounds like something Barista could have indeed. We already have Would you like to contribute this feature? I suspect the implementation would be very similar to those in |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For example, the barista assertion could be:
fun clickOnItem(recyclerViewId: Int, targetText: String)
The implementation:
onView(withId(recyclerViewId)).perform(RecyclerViewActions.actionOnItem(hasDescendant(withText(targetText)), click()));
Beta Was this translation helpful? Give feedback.
All reactions