0
我想测试如果imageView的编号为imageViewTour和标签包含some_text显示。Android,Espresso:如何检查标记值是否包含一些字符串?
我的测试:
onView(allOf(withId(R.id.imageViewTour), withTagValue(containsString("some_text")))).check(matches(isDisplayed()));
,但我得到编译错误:
withTagValue (org.hamcrest.Matchers<java.lang.Object) in ViewMatchers cannot be applied to (org.hamcrest.Matcer<java.lang<String>)
此外,我需要检查的标记值是结束与 “some_string”。我如何做到这一点? – Alexei