如何在Espresso中对ViewInteraction对象进行决策

时间:2018-07-15 11:43:59

标签: 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
}

0 个答案:

没有答案