I am trying to run an espresso test using onData
and everything works fine for a view that has only one AdapterView inside of it. However, when the screen shows a view that has multiple adapter views nested in it, I get:
android.support.test.espresso.AmbiguousViewMatcherException: 'is assignable from class: class android.widget.AdapterView' matches multiple views in the hierarchy.
Is there any way to specify which adapter view onData
should be looking at?