I have a ListView with images and text. When I try to click an item, I get an error
android.support.test.espresso.AmbiguousViewMatcherException: 'with id: com.cifrasoft.telefm:id/cardsGridView' matches multiple views in the hierarchy. Problem views are marked with '****MATCHES****' below.
I am using the following code:
onData(hasToString(startsWith("Item Text"))) .inAdapterView(withId(R.id.cardsGridView)) .perform(click());
Is it possible to click ListView using the Adapter position, without matches or startWith ?
android android-listview android-espresso ui-testing
rz0
source share