Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

uiautomatorviewer no longer shows resource-id

I use uiautomatorviewer to quickly get resource-ids to create acceptance tests, but in the past few weeks, I noticed that the field is no longer present. I'm unsure whether it's something on my end, or the tool that changed.

Previously, I could view the resource-id of an element: enter image description here

Now, the resource-id field is no longer present (the element selected does have an id): enter image description here

I just updated to Android SDK Tools 22.3, but this was happening before the update. Unfortunately, I didn't take note of what version this started happening in. :/

like image 997
rainbowsprinkles Avatar asked Dec 19 '22 21:12

rainbowsprinkles


2 Answers

Probably the problem is on Android Version? I'm using uiautomatorviewer connecting with a Galaxy Samsung S4 (GT-I9505) with Android 4.3 and I can see resource-id from the viewer but I can't using a Samsung Galaxy Note II (GT-N7100) with android 4.1.2.

like image 77
Flavio Capaccio Avatar answered Apr 05 '23 22:04

Flavio Capaccio


Visibility of the resource id is dependent on Adnroid version. Its supported from Android version 4.3 or later/ from API level 18. One of our dev confirmed too.

Another reference: real device Vs emulator : uiautomator does not show resource-id for the app

thanks, Ravikanth

like image 22
Ravikanth Bhusani Avatar answered Apr 05 '23 22:04

Ravikanth Bhusani