尝试调用textview时Espresso AmbiguousViewMatcherException

时间:2016-08-26 19:13:29

标签: android android-espresso

我正在尝试:调用textview活动。

我的问题是我无法使用espresso获得textview。

我的Java类

onView(withText("Latter Glory Ministries")).check(matches(isDisplayed()));

引发此异常:

android.support.test.espresso.AmbiguousViewMatcherException: '(with text: is "Latter Glory Ministries" and view has effective visibility=VISIBLE)' matches multiple views in the hierarchy.

问题视图在下方标有'**** MATCHES ****'。

摇篮

androidTestCompile 'com.android.support.test.espresso:espresso-core:2.0'
androidTestCompile 'com.android.support.test:testing-support-lib:0.1'

感谢您的想法!

0 个答案:

没有答案