Android Espresso listView scroll to

onData() will scroll to the item for you, just remove scrollTo() and it should click just fine.

scrollTo() is used only for items that are inside the ScrollView combined with onView()

Leave a Comment