---
title: App Inspection - Find Element Locators During Live Testing
description: Use App Inspection to find element locators by clicking on elements or
  searching the tree. Get XPath, Accessibility ID, Class Name, and ID locators.
source_url:
  html: https://testingbot.com/support/app-live/app-inspection
  md: https://testingbot.com/support/app-live/app-inspection/index.md
---
# App Inspection

App Inspection allows you to find element locators directly during a live testing session. This is useful when building automated tests — you can identify the exact locators (XPath, Accessibility ID, etc.) for any element on the screen.

## Accessing App Inspection

To open App Inspection during a live session:

- Click the **DevTools** icon in the toolbar
- Select the **Inspector** tab

 ![App Inspection panel open](https://testingbot.com/assets/support/manual/app/inspector-50bbb4c01075ad4ac32783b0715413e5aee13aa2bf93d052c97b877718219d34.gif)

## Click to Inspect

Click on any element on the live device screen to immediately see its locators. The inspection panel will display all available locator strategies for the selected element.

 ![Tap element for inspection](https://testingbot.com/assets/support/manual/app/inspect-tap-f1bc19e3f9181db2ac43e4679979f9988200160be81600ff896bd6e6b13af98e.gif)

## Search the Element Tree

Use the search bar at the top of the inspection panel to find elements by text content or attribute value. This is helpful when you need to locate elements that are off-screen or deeply nested in the view hierarchy.

 ![Search element tree](https://testingbot.com/assets/support/manual/app/search-84da9ce61c314ba8979eed7f490f1465114c138768603a06d3c2a37f60d2e7ec.gif)

## Available Locators

When you select an element, the following locator strategies are displayed:

| Locator | Description |
| --- | --- |
| XPath | Full XPath expression to uniquely identify the element in the view hierarchy. |
| Accessibility ID | The accessibility identifier set by the app developer. Preferred locator for stable tests. |
| Class Name | The UI element class (e.g., `android.widget.Button`, `XCUIElementTypeButton`). |
| ID | The resource ID of the element (Android) or the element name (iOS). |

## Copy Locators

Click the copy icon next to any locator to copy it to your clipboard. You can then paste it directly into your automated test code.

Was this page helpful? Yes No 

## Looking for More Help?

Have questions or need more information?   
 You can reach us via the following channels:

- [Email us](https://testingbot.com/contact/new)
- [Join our Slack Channel](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
