---
description: Identifying Android application (AUT) objects using Uiautomatorviewer to write automation scripts To automate any android application using Appium, user needs to identify the objects in AUT (Applicati
title: UIAutomatorViewer Tutorial: Inspector for Android Testing
image: https://www.guru99.com/images/uiautomatorviewer.png
---

 

[Skip to content](#main) 

## What is UiAutomatorViewer?

“UIautomatorviewer” is a GUI tool to scan and analyze the UI components of an Android application.To automate any android application using Appium, a user needs to identify the objects in AUT (Application under test). With “UIautomatorviewer” you can inspect the UI of an android application to find out the hierarchy and view different properties (id, text…) of the element.

While executing automation scripts, Appium uses “Uiautomatorviewer” to identify different properties of the object and use the properties to identify the required object.

[![UiAutomatorViewer](https://www.guru99.com/images/9-2015/082715_1132_Identifying1.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying1.png)

## How to Download & Install UIAutomator

“Uiautomatorviewer” is a part of the Android SDK manager and will be accessible once you install the SDK manager. Download and install Android SDK manager from [here](http://developer.android.com/sdk/index.html)

Once Android SDK installed, navigate to link

c:\users\<username>\AppData\Local\Android\sdk\tools

You’ll notice a batch file with name

uiautomatorviewer.bat

Double click on it to launch “Uiautomatorviewer” GUI

[![Download & Install UIAutomator](https://www.guru99.com/images/9-2015/082715_1132_Identifying2.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying2.png)

## How to use Uiautomatorviewer to find objects in my application

1. Enable “developer” options on your device. Click [here](https://developer.android.com/studio/debug/dev-options) to know how to enable developer options on Android devices
2. Connect your android device to PC via USB cable
3. Select “Guru99” app from applications

[![Use Uiautomatorviewer to Find Objects in My Application](https://www.guru99.com/images/9-2015/082715_1132_Identifying3.jpg)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying3.jpg)

1. Click the ‘Device screenshot’ button to refresh the “Uiautomatorviewer” and to load the guru99 application GUI on “Uiautomatorviewer”

[![Use Uiautomatorviewer to Find Objects in My Application](https://www.guru99.com/images/9-2015/082715_1132_Identifying4.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying4.png)

1. After refresh is completed, a screenshot of Guru99 application opens

[![Uiautomatorviewer to Find Objects in My Application](https://www.guru99.com/images/9-2015/082715_1132_Identifying5.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying5.png)

1. As you see in the above image, on the right side of the window there are 2 panels.

Upper panel contains node hierarchy the way the UI components are arranged and contained, clicking on each node gives properties of UI elements in the lower panel

1. Select ‘**Quiz**‘ button in the above image to view different properties (text, resource-id…)

[![Use Uiautomatorviewer to Find Objects in My Application](https://www.guru99.com/images/9-2015/082715_1132_Identifying6.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying6.png)

### RELATED ARTICLES

* [Mobile Apps Testing: Sample Test Cases & Test Scenarios ](https://www.guru99.com/testing-mobile-apps.html "Mobile Apps Testing: Sample Test Cases & Test Scenarios")
* [iOS App Testing Tutorial ](https://www.guru99.com/getting-started-with-ios-testing.html "iOS App Testing Tutorial")
* [Appium Tutorial for Beginners ](https://www.guru99.com/introduction-to-appium.html "Appium Tutorial for Beginners")
* [7 BEST Mobile App Testing Tools (2026) ](https://www.guru99.com/mobile-testing-tools.html "7 BEST Mobile App Testing Tools (2026)")

## How to use these properties to identify elements for automation

Well, you cannot use the properties directly, each property has other names. Let’s see how to use those properties values to work. Following attributes can be used to identify ‘**Quiz**‘ button in Guru99 app.

* **text** attribute can be used as “**name”**

[![Use Name Properties to Identify Elements For Automation](https://www.guru99.com/images/9-2015/082715_1132_Identifying7.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying7.png)

* **resource-id** attribute can be used as “**id”**

[![Use Id Properties to Identify Elements For Automation](https://www.guru99.com/images/9-2015/082715_1132_Identifying8.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying8.png)

* **class** attribute can be used as “**className”**

[![Use className Properties to Identify Elements For Automation](https://www.guru99.com/images/9-2015/082715_1132_Identifying9.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying9.png)

**content-desc** attribute can be used as “**AccessibilityId”**

[![Use AccessibilityId Properties to Identify Elements For Automation](https://www.guru99.com/images/9-2015/082715_1132_Identifying10.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying10.png)

Along with above attributes, we can write xpaths for object identification 

## Error one might encounter while using Uiautomatorviewer

* I see the error- “No Android devices were detected by adb” as shown in below screenshot how I can resolve this

[![Error One Might Encounter While Using Uiautomatorviewer](https://www.guru99.com/images/9-2015/082715_1132_Identifying11.png)](https://www.guru99.com/images/9-2015/082715%5F1132%5FIdentifying11.png)

**Solution:** Make sure your device is connected to PC

#### Summarize this post with:

ChatGPT Perplexity Grok Google AI 

**Stay Updated on AI** **Get Weekly AI Skills, Trends, Actionable Advice.** 

##### Sign up for the newsletter

Subscribe for Free 

You have successfully subscribed.  
Please check your inbox. 

![AI-Newsletter](https://www.guru99.com/images/footer-email-avatar-imges-1.png) Chosen by over **350,000+** professionals 

[Scroll to top ](#wrapper)Scroll to top 

× 

Toggle Menu Close 

Search for: 

Search

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.guru99.com/#organization","name":"Guru99","sameAs":["https://www.facebook.com/Guru99Official","https://twitter.com/guru99com"],"logo":{"@type":"ImageObject","@id":"https://www.guru99.com/#logo","url":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","contentUrl":"https://www.guru99.com/images/guru99-logo-v1-150x59.png","caption":"Guru99","inLanguage":"en-US"}},{"@type":"WebSite","@id":"https://www.guru99.com/#website","url":"https://www.guru99.com","name":"Guru99","publisher":{"@id":"https://www.guru99.com/#organization"},"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https://www.guru99.com/images/uiautomatorviewer.png","url":"https://www.guru99.com/images/uiautomatorviewer.png","width":"276","height":"200","inLanguage":"en-US"},{"@type":"BreadcrumbList","@id":"https://www.guru99.com/uiautomatorviewer-tutorial.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":"1","item":{"@id":"https://www.guru99.com","name":"Home"}},{"@type":"ListItem","position":"2","item":{"@id":"https://www.guru99.com/mobile-testing","name":"Mobile Apps Testing"}},{"@type":"ListItem","position":"3","item":{"@id":"https://www.guru99.com/uiautomatorviewer-tutorial.html","name":"UIAutomatorViewer Tutorial: Inspector for Android Testing"}}]},{"@type":"WebPage","@id":"https://www.guru99.com/uiautomatorviewer-tutorial.html#webpage","url":"https://www.guru99.com/uiautomatorviewer-tutorial.html","name":"UIAutomatorViewer Tutorial: Inspector for Android Testing","dateModified":"2024-01-05T18:41:43+05:30","isPartOf":{"@id":"https://www.guru99.com/#website"},"primaryImageOfPage":{"@id":"https://www.guru99.com/images/uiautomatorviewer.png"},"inLanguage":"en-US","breadcrumb":{"@id":"https://www.guru99.com/uiautomatorviewer-tutorial.html#breadcrumb"}},{"@type":"Person","@id":"https://www.guru99.com/author/thomas","name":"Thomas Hamilton","description":"I am Thomas Hamilton, a seasoned professional in software testing, specializing in crafting comprehensive guides to help you master your software testing skills.","url":"https://www.guru99.com/author/thomas","image":{"@type":"ImageObject","@id":"https://www.guru99.com/images/thomas-hamilton-author-v2-120x120.png","url":"https://www.guru99.com/images/thomas-hamilton-author-v2-120x120.png","caption":"Thomas Hamilton","inLanguage":"en-US"},"worksFor":{"@id":"https://www.guru99.com/#organization"}},{"@type":"NewsArticle","headline":"UIAutomatorViewer Tutorial: Inspector for Android Testing","keywords":"mobile","dateModified":"2024-01-05T18:41:43+05:30","articleSection":"Mobile Apps Testing","author":{"@id":"https://www.guru99.com/author/thomas","name":"Thomas Hamilton"},"publisher":{"@id":"https://www.guru99.com/#organization"},"description":"Identifying Android application (AUT) objects using Uiautomatorviewer to write automation scripts To automate any android application using Appium, user needs to identify the objects in AUT (Applicati","copyrightYear":"2024","copyrightHolder":{"@id":"https://www.guru99.com/#organization"},"name":"UIAutomatorViewer Tutorial: Inspector for Android Testing","@id":"https://www.guru99.com/uiautomatorviewer-tutorial.html#richSnippet","isPartOf":{"@id":"https://www.guru99.com/uiautomatorviewer-tutorial.html#webpage"},"image":{"@id":"https://www.guru99.com/images/uiautomatorviewer.png"},"inLanguage":"en-US","mainEntityOfPage":{"@id":"https://www.guru99.com/uiautomatorviewer-tutorial.html#webpage"}}]}
```
