Unable to inspect elements on android mobile appliction using ui automator viewer


#1

I am working on automating mobile application using Selenium/Java with appium.I tried to inspect elements inside frame using ui automator.But i am not getting it.Can someone give me a suggestion on how to handle the elements inside frame


#2

Please share screenshot.


#3

I am not able to inspect email and password elements.It looks like it is inside frames.How to handle these elements and also how to get frame id using ui automator?


#4

Go through this
http://toolsqa.wpengine.com/mobile-automation/appium/how-to-inspect-and-automate-webview-in-hybrid-app/

Revert if still its not working.


#5

Got it. It is working now.Thanks Amit :slight_smile:


#6

Welcome Vasuki
:smile:


#7

You can also take adb dump in order to find full xml of current activity in android and get locators by pulling this through xml file. uiautomatorviewer does the same internally.
Source: https://youtu.be/wjEWRMbPk1Q


#8

How did you resolve this issue?


#9

Hey @Mahadevgouda, you can use Chrome Browser DevTools -> Devices . Go to url : chrome://inspect/#devices . Will show your connected devices and you can inspect elements on current page.