
We will explore UIAutomatorViewer(For Android) in the next chapter.Īccessibility Inspector(iOS): The Accessibility Inspector is a tool that shows all of the properties and values, methods (actions that can occur from elements on the screen), and position of the object that’s currently being selected on the screen. Appium Desktop Inspector uses the same methods as UI Automator Viewer to identify the elements in your mobile app:Īlso, the properties of the mobile elements, such as resource-id, content-desc, text etc, will be the same in both the tools. The are slight differences in the UI of both the tools, but the underlying logic of identifying elements remains the same. There is one important factor in that the way you inspect elements in mobile app is exactly the same in UIAutomatorViewer and Appium Desktop Inspector. UiAutomatorViewer(Android): This is a tool provided by Android Studio that lets you inspect elements in your mobile app. But we will cover the most important and used Element Inspectors:Īppium Inspector: You can use this inspector for both Android and iOS apps (for iOS apps, you would need a Mac) There are many different tools that help you inspect elements in mobile apps. To record your manual actions with the app: In order to record your actions, you need either the Appium Inspector or some other tool that can access those elements.

To find the name, description, value and other attributes of the element/object: Objects have certain characteristics that can be identified through this tool and then used with the xpath command. To identify and understand the element hierarchy: For developers this may be trivial but for testers it is definitely useful information on how certain UI elements are aligned with each other and what other layers/fragments/etc the app may have. The Appium Desktop Application is a combination of the Appium server itself and the Element inspector, which is designed to help you discover all the visible elements of your mobile application while developing your test scripts. NOTE: The Appium Inspection tool does not support finding the locators on Web Browser(Chrome) as it is specifically designed to fetch the attributes for Native Mobile Application only. It works with both real devices or simulators(iOS) or emulators(Android). Appium inspection is a standard procedure to identify the UI elements of a mobile app uniquely. It is the process by which you can locate or find elements in your mobile application (native only). Appium inspection is known by many names such as Element Extraction, UI Element Identification, Locator Finding, etc. And this is where the Appium Inspector comes into play.

However, if you haven’t already realized (you soon will!), finding these unique elements can sometimes be painful. As you learned in the previous chapter, In order to perform automation it’s necessary to locate the unique selectors for:
