Skip to main content
🚀 Self Healing AI Agent now live in App Automate! Auto-fix flaky tests instantly with zero code changes. Enable now!
No Result Found
Get your setup working faster. Join our Discord for optimisation tips from elite testers. Join our DiscordJoin our Discord

Use Appium Inspector for automated app testing

Inspect your app elements and interact with them on the BrowserStack device cloud using Appium inspector. Test your apps on a real device cloud.

Appium Inspector shows your app’s UI elements in real time, so you can build accurate and maintainable test scripts. BrowserStack’s integration lets you run the inspector on real Android and iOS devices. Download the latest release from the Appium Inspector GitHub page.

Integrate BrowserStack with Appium Inspector

To use BrowserStack with Appium Inspector, follow these steps:

Upload your Android (.apk file) or iOS (.ipa file) apps to the BrowserStack servers using any of the menthods mentioned in the upload and manage apps document. For example, to upload apps using the REST API, use the following cURL request:

curl -u "YOUR_USERNAME:YOUR_ACCESS_KEY" \
-X POST "https://api-cloud.browserstack.com/app-automate/upload" \
-F "file=@/path/to/app/file/app-debug.apk" \

Here is an example REST API response :

{
    "app_url":"bs://f7c874f21852ba57957a3fdc33f47514288c4ba4",
}

We use the app_url value later to set the app capability.

In Appium Inspector, select BrowserStack from the list of cloud providers to start a session window.

On the new session window, enter your BrowserStack username and access key to configure BrowserStack credentials on Appium inspector. You can retrieve these credentials from BrowserStack’s Account Settings page.

Configure BrowserStack capabilities in the Desired Capabilities tab on Appium inspector. Use the app_url value obtained in STEP 1 to set the app capability value. You also need to set the device value. Refer to the Capabilities reference page for a list of supported capabilities.

Configure BrowserStack capabilities in the Desired Capabilities tab on Appium inspector. Use the app_url value obtained in step 1 to set the app capability value

To locate elements, set the appium:disableSuppressAccessibilityService as false or appium:settings[allowInvisibleElements] as true before initializing the Appium inspector session. For more information, see Identify elements using Appium Inspector

After successfully connecting to the BrowserStack device, you can view the elements of your app and record the session. Use the App Automate Dashboard to access test details.

To view, interact with, and debug an ongoing test session on the App Automate platform, see Debug using an interactive session.

sample showing how to use inspect element of your app after successful connection with BrowserStack device

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Test web and mobile, from manual to automation, on real devices in one unified platform.

Contact Us

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle