标签: android android-espresso android-uiautomator
我如何在Espresso中验证视图中的(Dynamic)元素是否可用?
ViewInteraction _checkbox=onView(withId(R.id.elemntId)); if (_checkBox.check(matches(isDisplayed()))){ // perform action if is available } else { // perform action if is not available }