The developers I'm working with in my team need to make automated integration tests and in some of them need to make actions on particular elements within specific pages of their app.
To do so, they're using UI Automator, but the "uiautomatorviewer" is causing some problems due to uncovered Java versions (that's what it seemed to me). They need a similar tool because, for example, if they want to catch a specific button and simulate the act of clicking it, for what I have understood until now, they have to call a method called resourceId(String) of UiSelector class, passing in it a string made of an "id", which some elements don't have explicitly declarated in the code, and so that's why they need to be able to debug the running app to see what is, for example, that id of that specific button.
I've seen this string is formed by what looks like a package (ex. com.android.vending:id/the_id).
I've done this technical example because they need something allowing them to know how to find the name of the id and how to find the name of the "package" to use. Are these informations available somewhere on Android Studio?
I've tried to use the Chrome DevTools but, for what I have understood about it, it doesn't work with native apps but only inspects web pages, correct me if I'm wrong.
I think also Genymotion works in the same way and doesn't allow to inspect apps.
If there is a simpler alternative allowing to get the strings to pass to the "resourceId" method without using "uiautomatorviewer" and similar softwares, could you suggest me how to do it?
If not, could you suggest me a good alternative to "uiautomatorviewer"?
maybe this github repo help you to alternative way:
android inspector