Skip to content

Driver Session

Introduction

This module provides instructions for setting up and verifying the Appium environment for Android automation.

Appium Inspector for Android

Appium Inspector is a graphical tool that allows you to inspect the UI elements of a connected Android device. Please refer to the main documentation for installation instructions.

Before starting Appium Inspector

  1. Ensure your Android device is connected to the computer and properly configured as described in the Android Devices module. Use the following command on terminal to verify the connection:
    shell
    adb devices
    The output should list your device as device. If the device is not listed, troubleshoot the connection as described in the Android Devices module.
  2. Start the Appium server by running this command on terminal:
    shell
    Appium

Usage

  1. Open Appium Inspector.
  2. In the "Desired Capabilities" section, configure the following capabilities:
    • platformName: Android
    • appium:udid: The ID of your connected device
      (the device ID from adb devices command).
    • appium:automationName: UiAutomator2Appium inspector
      The JSON Representation panel should countains a text like the example as follows:
    json
    {
       "platformName": "Android",
       "appium:udid": "RQCX9999999",
       "appium:automationName": "UiAutomator2"
    }
  3. Click the "Start Session" button.
  4. Appium Inspector will display the UI of the connected device, allowing you to inspect elements and generate selectors for your automation scripts. Appium inspector