I have an alert dialog on which there is a ListView. I need to click on the first button of this ListView. This button has the text "Daily" and the position "0". Unfortunately, this code does not work. Alert dialog opens, but the desired button is not pressed.
click(R.id.tiPeriodicity);
onView(withText(containsString("Daily")))
.inRoot(isDialog())
.perform(ViewActions.click());
Aucun commentaire:
Enregistrer un commentaire