Appium Inspector
Real Devices Only
Appium Inspector is a powerful tool built on top of the Appium test automation framework to help simplify the process of writing/debugging tests for mobile applications on real devices. This helps to automate a new application or feature in your native application. The tool is designed to help you select specific elements in your application for test automation, so you will be able to debug issues in your test automation scripts in a timely manner. Our latest solution seamlessly integrates into the Sauce Labs environment, requires no additional configuration on your end and it removes the burden of installing a 3rd party tool. We are using the latest version of Appium to inspect the elements in your application, mirroring the experience of local debugging or attaching 3rd party inspector tools to your native Appium sessions.
What You'll Need
- A Sauce Labs paid account (Log in)
- A native Android, iOS, or iPadOS mobile app.
Using and accessing Appium Inspector on Real Devices
- In Sauce Labs click Live and Mobile app testing.
- Select your native application from the dropdown or go to the App Management page and click Start Testing
- Select your desired device and click on Start Test from the device tile.
- Click on Developer Options in the toolbar, when your session has successfully launched and your native application screen is visible.
- Click on Appium Inspector on the right side, and click Start Inspection, to start your Appium session.
- Navigate to the desired page/screen in your native application
- Click Refresh inside the Inspect View element whenever you need to take a new snapshot of your application screen.
- We will take a snapshot of the displayed page source with all of the View Hierarchy and attributes.
Now you will be able to navigate within your application on the left side throughout the whole session. If you want to take another snapshot of the screen of your application you just need to click Refresh in the Inspect View.
You must wait for your app to launch before starting Appium Inspector!
Using the Inspect View
The Inspect View gives you a snapshot of your application screen, which can be used for debugging. You can hover over the elements, highlight them, or by clicking on these elements inspect your App Source Tree or attributes on the right side.
When you click on the desired UI element we will pin the App Source and the Selected Elements on the right side.
Using the App Source
The App Source view will get you the detailed breakdown of your native applications view hierarchy in an XML tree structure. We are using the same getPageSource command as Appium to get the detailed source elements, attributes, and view hierarchy. See more here.
In addition, you can Copy and Download the App Source along with its attributes for seamless debugging and collaboration with colleagues for effective troubleshooting.