You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What code are you running and what is happening?
I'm trying to access Tab Components of Tab Navigator using testID or accessibilityLabel. It is working fine on iOS and Recording Tests on Xcode works.
But on android Test recorder doesn't capture accessibilityLabel or testID. Which are provided like following:
android.support.test.espresso.NoMatchingViewException: No views in hierarchy found matching: with content description: is "tasksTab"
But if I access tasksTabIcon it works but action click() has no joy on it. Also I have to select the 1st element as it finds multiple instances for tasksTabIcon.
Current Behavior
I'm trying to access Tab Components of Tab Navigator using
testID
oraccessibilityLabel
. It is working fine on iOS and Recording Tests on Xcode works.But on android Test recorder doesn't capture
accessibilityLabel
ortestID
. Which are provided like following:Trying to access
accessibilityLabel
with:results in error:
But if I access
tasksTabIcon
it works but actionclick()
has no joy on it. Also I have to select the 1st element as it finds multiple instances fortasksTabIcon
.I've also checked it with Layout Inspector but the behavior is the same. Label for
tasksTabIcon
is present but label fortasksTab
is not.No.
Expected Behavior
Tab Components should be available in Android for Espresso with
withContentDescription
as they are in iOS.No.
How to reproduce
Just assign
accessibilityLabel
to any Tab Component in Tab Navigator and try to check ifisDisplayed()
with Android Studio's Espresso.Your Environment
The text was updated successfully, but these errors were encountered: