Why does my perform click results to NoMatchingViewException on a textView under TabLayout

  • Thread starter Android Central Question
  • Start date
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
 

mustang7757

Super Moderator
Moderator
Feb 6, 2017
91,587
6,173
113
Visit site
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
Hi , if you can register a account here , me or other members be happy to assist.

I'll provide a link to register so you can communicate here.
https://forums.androidcentral.com/ask-question/409154-join-android-central-community.html