lundi 24 juillet 2017

Espresso AmbiguousViewMatcherException when trying to click marker(image) on the map screen

Getting below error while i try to click the image on the map screen

android.support.test.espresso.AmbiguousViewMatcherException: 'is assignable from class: class android.widget.AdapterView' matches multiple views in the hierarchy.
Problem views are marked with '****MATCHES****' below.

except content-desc and index, there is nothing with which i can locate the element on the map screen and class name is android.view.view same for all markers(images) on the map. im trying like this

DataInteraction marker1 = onData(startsWith("content-desc text"))
                .atPosition(index no.);
                marker1.perform(click());

Thanks inadvance :)

Aucun commentaire:

Enregistrer un commentaire