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

  • Thread starter Thread starter Android Central Question
  • Start date 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
 
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
 
I moved this to the Software Development forum for more specific traffic.
 
I have registered an account.

I still have same problem regarding TabLayout. I'd appreciate your help.