A
Android Central Question
onView(allOf(withId(R.id.appbar), withText(R.string.BUTTON_MANUAL_INPUT), isDescendantOfA(withId(R.id.tabs)), isDisplayed())); //success
onView(allOf(withId(R.id.appbar), withText(R.string.BUTTON_MANUAL_INPUT), isDescendantOfA(withId(R.id.tabs)), isDisplayed())).perform(click()); //error NoMatchingViewException
onView(allOf(withId(R.id.appbar), withText(R.string.BUTTON_MANUAL_INPUT), isDescendantOfA(withId(R.id.tabs)), isDisplayed())).perform(click()); //error NoMatchingViewException