我有ListView图片和文字.当我尝试点击项目时,我收到错误
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.
Run Code Online (Sandbox Code Playgroud)
我使用以下代码:
onData(hasToString(startsWith("Item Text")))
.inAdapterView(withId(R.id.cardsGridView))
.perform(click());
Run Code Online (Sandbox Code Playgroud)
我可以点击ListView使用位置Adapter,没有匹配或startWith?