Pregunta

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. :/

¿Fue útil?

Solución

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.

Otros consejos

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

You will be able to view the resource id based on the device you are using. Some devices don't allow developers to show the resource id using uiauromator viewer. try using nexus devices and you will find the resource ids shown.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top