testID information not visible on UIAutomator in Appium.
See original GitHub issueHi there,
We are doing an automation test for Android (API version 21) on Appium.
And we are using UI Automator Viewer to see the node details information and we need resource-id
information visible in order to test for unique nodes so we know which elements are being interacted.
But currently, resource-id
column is empty even though we have applied testId
property on each <View>
.
Please close this issue if there is a duplicate, otherwise please advise on what we can do to have each nodes to have unique id’s specified from testId
value provided.
Thanks,
Sam
Issue Analytics
- State:
- Created 7 years ago
- Comments:24 (7 by maintainers)
Top Results From Across the Web
React Native UI element access via testID - Appium Discuss
Using elementByName() I can find views by the testID values in Appium on iOS but not on Android - from digging around it...
Read more >Testing React Native Application with Appium - Stack Overflow
1 Answer 1 · Launch the target app on a physical device. · Connect the device to your development machine. · Open a...
Read more >Appium studio with react native
I've been using appium for testing android apps. Now this React native app's testid attribute is not visible in appium's uiautomator2.
Read more >Chapter-5: Using Appium Inspector for Android and iOS Apps
The Appium Desktop Application is a combination of the Appium server itself and the Element inspector, which is designed to help you discover...
Read more >How To Improve Appium Test Speed and Reliability - HeadSpin
Appium is not one monolithic beast, even though to the user of Appium it might look ... We make this parser available via...
Read more >
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
we are suffering and they don’t care…
the problem is that some people say that testID will add a tag to the element, but Appium doesn’t support it.
some people say Appium cut the support for tag in version 1.5: i tried it and it didn’t work in version 1.4.
some people are saying that tag will be activated in Appium version 2 because of uiautomator 2 (i think), but nothing new on that.
there is a tool called cavy, but it doesn’t have support at all, it’s a couple of months old…
i think the best thing we can do is to use accessibility label and add a special key in front of everything so that we can find and comment it thru out the whole application, i guess something like:
accessibilityLabel=“ID button1” accessibilityLabel=“ID button2” . . . and then find (accessibilityLabel="ID) and replace it with (//accessibilityLabel="ID)
I wonder if this has been forgotten by the react native team…