How to use Appium Inspector for Faster Test Authoring in Sauce Labs Real Device Cloud

Sauce AI for Test Authoring: Move from intent to performance in second.|xBack to ResourcesBlogPosted

February 22, 2026 · 8 min read · Tool Comparison

Sauce AI for Test Authoring: Move from intent to performance in second.

|

x

Back to Resources

Blog

Posted March 26, 2024

How to use Appium Inspector for Faster Test Authoring in Sauce Labs Real Device Cloud

Appium Inspector integrated support in Sauce Labs Real Device Cloud, using the latest version of Appium, now permit you to inspect Appium locators in real-time for native coating.


Appium Inspector integrated support in Sauce Labs Real Device Cloud

Testing doesn & # x27; t have to be boring, and it certainly doesn & # x27; t need to be difficult ...

Appium Inspector is a GUI tool that simplifies the summons of writing and debugging exam for mobile applications on real devices.How? Built on top of the test mechanization fabric, it furnish a user-friendly interface for automating a new app or feature in your native application.

Appium Inspector in the Sauce Labs Real Device Cloud employ the up-to-the-minute Appium adaptation and decimate ill-chosen workflows to help you inspect Appium locater in real time for native applications, and prime specific component to debug issues in your exam mechanization scripts quickly.

Get testing in just a few steps:

  1. Once your app is running on your selected real device, access the "Developer Options & quot; from the Live Test interface to locate and select the& quot; Appium Inspector" tab.

  2. Click on the& quot; Start Inspection & quot;push. A substance indicating& quot; We ’ re creating your Appium session. & quot;will then appear. This procedure may take a few seconds

Et voila! Appium Inspector interface will be visible, allowing you to begin interacting with your application & # x27; s UI elements, with the actual Appium waiter run.

Key benefits for QA, QE, and Appium test authors

  • Achieve faster test authorfor Appium exam with the unlined consolidation of Appium Inspector, empowering team to visit UI elements within the application with a single clink.

  • Facilitate faster debuggingof Appium test mechanisation script subject by leveraging the Appium Inspector integration embedded within the comprehensive and broader real-time instrument set available in Sauce Labs.

  • Improve productivenessby streamline the workflows for scrutinise elements and eliminating the need for any additional contour and tool installation.

  • Enhance test efficiencywith a superior user experience feature unmediated Appium Inspector session opening from failed tests, one-click app source copying and downloading, and well validating hybrid/web (iOS) views for native apps.

Approaches to using Appium Inspector

With the Appium Inspector active, you ’ ll now have access to the app & # x27; s UI as it appears in the live session, as well as the ability to interact with and inspect UI elements & # x27; properties through a few specific approaches:

One of the approaches to using Appium Inspector


Option 1: Direct interaction in the Inspect View for debugging

Think of the Inspect View as a shot of your application. Inspect elements of your App by hovering, spotlight, or clicking on the desired UI element in the Inspect view. The choose element will be highlighted with a immature background and displayed in the& quot; App Source & quot;and under the& quot; Selected Element & quot;prospect, showcasing the element & # x27; s attributes.

Option 2: Using the App Source View

The App Source View provides a more detailed face into the hierarchy of your aboriginal application in an XML tree construction. Hover over elements to see their tantamount highlighted in the Inspect View. You can also snap on an element to view its properties which will appear under the& quot; Selected Element & quot;view.

In both pick, the& quot; Selected Element & quot;view will reveal the place of the chosen element. The& quot; Find By & quot;column will list the locators useful for identifying the factor in your examination. Additional attributes, such as breadth and height, are displayed in the& quot; Attribute & quot;column, providing a comprehensive understanding of the element & # x27; s characteristics.

Navigating and refreshing the UI View

When you move to a different blind within your app, or scroll through the current screen, the UI elements visible in the Appium Inspector don ’ t automatically update to reflect the new vista. Refreshing the UI panorama in the Appium Inspector is essential to act with the most current representation of your app & # x27; s UI.

To ensure you are inspecting the current state of your app & # x27; s UI, follow these steps:

  1. Perform the desired navigation or scrolling activity within your app & # x27; s UI in the live session.

  2. Now, detent on the& quot; Refresh & quot;button in the Appium Inspector to squeeze the Inspector to convey and display the updated view of your app & # x27; s UI.

    For autonomous testing across multiple user personas, check out SUSATest — it explores your app like 10 different real users.

  3. With the UI view refreshed, you can now continue to interact with and scrutinise the UI elements that are currently visible.

To stop inspecting and interact with your app, close it by clicking the & quot;X& quot; button. After fold the Appium Inspector, you can either continue with your alive testing or end the session based on your needs.

Best Practices for Using Appium Inspector on Sauce Labs

Here are a few shipway to maximize Appium Inspector & # x27; s utility in Sauce Real Device Cloud:

Utilize Locators for more efficient test mechanisation

Use Appium Inspector to find and determine the best locators for UI factor within your roving application. Identifying robust locators is critical for evolve stable and authentic automated trial.

Incorporating these locator into your automation test scripts will significantly trim flakiness and ameliorate test reliability.

Example - Verifying the Sorting options screen in the Sauce Demo app.

The below example demonstrates the procedure of using Appium Inspector to name locators for UI elements within the Sauce Demo app and apply these locators in Java tryout code to verify the sort options screen is evidence.

You can find a comprehensive view of how this suit into a larger test suit using the.

Applying locators for UI elements within the Sauce Demo app in Java test code to verify the sorting options screen is shown
  • Step 1:Use the Appium Inspector to chance the locator of the Sorting Options button on your app & # x27; s chief screen.

  • Step 2: Copy the identified locator into your Java test code. The accessibility ID of the locator for the sorting options button is & quot; Shows current assort order and displays useable sorting options & quot;. Thus, the code to delineate this locator and perform a click action would look like this:

By sortButtonLocator = AppiumBy.accessibilityId (& quot; Shows current sorting order and display available sorting options & quot;);
driver.findElement (sortButtonLocator) .click ();

  • Step 3:From the live session, click on the classification options button to voyage to the sorting options screen.

  • Step 4: From the Appium Inspector, click the Refresh button to update and get the new locater for the current screen scene.

  • Step 5:Use the Appium Inspector to find the locator for the & quot; sort by: & quot; rubric on the sorting options screen.

  • Step 6: Copy the identified locator into your Java exam code. The ID identifier of the locater for the categorization options screen title is & quot; com.saucelabs.mydemoapp.android: id/sortTV, & quot;. Thus, the code to delimitate this locator and add an assertion to verify that the sorting modal is expose on the screen:

By sortModalLocator = By.id (& quot; com.saucelabs.mydemoapp.android: id/sortTV & quot;);

//Verify that the sort modal is display on the screen

assertThat (isDisplayed (sortModalLocator, 5)) .as (& quot; Verify kind modal is displayed & quot;) .isTrue ();;

This step-by-step example showcases the workflow from using Appium Inspector for locating and interact with UI elements, to enforce these locators in automation test scripts. It highlights the importance of precise locater identification and substantiation in developing stable and true automated tests for roving applications.

Explore UI Structure for improved understanding of element hierarchy

Having the ability to visualise and read the hierarchy of the UI elements is crucial for writing tests that interact with the UI elements accurately and effectively.

Generate more detailed approachability insight

Take greater reward of more thorough to verify if elements are seeable and enabled to make more inclusive apps.

The insights gain can guide improvements in your app ’ s usability by see elements are right labeled and approachable to all users, including those with disability.

Get started

The beauty of Appium Inspector integrated support is that itsimplifies how you inspect and interact with UI elements, eliminating the need for any additional configuration, installation, and protection. You can begin an Appium Inspector session directly from a‘ Failed Automated ’Appium test to well find factor byID/Xpath/AccessibilityID,and copy or download App Source with a individual detent!

Also, accelerate debugging for Appium tryout script issueswith Appium Inspector ’ s implant integration into the wide real-time debugging tool set offer in Sauce Labs.

You ’ re on your way to a more exciting screen experience. Start your journey with our Appium Inspector.

Ashwini Sathe

Sr. Group Product Marketing Manager

Eyal Yovel

Senior Solution Architect

Published:
Mar 26, 2024
Share this billet
Copy Share Link

Start debugging in minutes with Sauce Labs

Deliver quality software continuously

LinkedIn
© 2026 Sauce Labs Inc., all rights appropriate. SAUCE and SAUCE LABS are registered trademarks owned by Sauce Labs Inc. in the United States, EU, and may be registered in other jurisdictions.
robot
quote

Automate This With SUSA

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.

Try SUSA Free

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free