Inspect Mobile Applications
Last updated
Appium Inspector can be used to inspect Android applications and identify elements when creating selectors for mobile tests.
The sample configuration below assumes that:
An Android emulator is already running
The emulator instance name is emulator-5554 (the default emulator name in most Android SDK installations)
Appium Inspector is commonly used during test development to inspect application elements and identify selectors that can be used in mobile test steps.
Run:
npm install -g appiumRun:
appium driver install uiautomator2Download and install Appium Inspector from:
https://github.com/appium/appium-inspector/releases
Run:
Leave the Appium server running while using Appium Inspector.
Launch Appium Inspector and create a new session.
In Capability Builder → JSON Representation, enter the following configuration:
Click Save As
Enter a name (for example, local android)
Click Save
The saved configuration can be reused for future sessions.
Click Start Session.
Appium Inspector will connect to the running emulator and display the application hierarchy, allowing you to inspect elements and identify selectors for use in your mobile tests.
Last updated
appium{
"platformName": "Android",
"appium:automationName": "UiAutomator2",
"appium:deviceName": "emulator-5554",
"appium:udid": "emulator-5554",
"appium:noReset": true
}
