question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

testID information not visible on UIAutomator in Appium.

See original GitHub issue

Hi 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:closed
  • Created 7 years ago
  • Comments:24 (7 by maintainers)

github_iconTop GitHub Comments

6reactions
tayunuscommented, Jul 25, 2017

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)

6reactions
gmaggesscommented, Jul 12, 2017

I wonder if this has been forgotten by the react native team…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found