UI Automator Viewer : Locate Elements in Mobile apk testing

Find android application element details using UI Automator Viewer

Friends, Let's see how to find element details of android application using Android “UI Automator Viewer”. Following are the steps:
1. Open android application on emulator or real device. Like I have opened below app on emulator.

2. Go to “tools” folder in your installed Android SDK folder.
3. Click on uiautomatorviewer.bat file you screen should be open below screen.

4. Click on Icon as marked on above screen, your opened application display in UI Automator Viewer like below screen. Move your mouse on element at left panel, you should see element details will show on right panel.