0
我想斷言文本不在視圖中。Android Espresso斷言問題
//ViewInteraction appCompatTextView10 = onView(
allOf(withText("Politics"), not(isDisplayed())));
appCompatTextView10.perform(click());//
不起作用。
onView(allOf(withId(R.id.title), not(withText("Politics"))));
也無法正常工作。
有幫助嗎?是donotexists()已棄用?我無法使用它。