Skip to content

UIAutomator2 Driver

Introduction

The UIAutomator2 Driver is the default driver for Android automation in Appium. It supports Android versions 5.0 and above.

Installation

To install the UIAutomator2 Driver, open your terminal and type:

shell
appium driver install uiautomator2

After the installation, you can verify the driver is installed by running:

shell
appium driver list

The output should include uiautomator2 in the list of installed drivers.

Environment Validation

To validate your Android environment for the UIAutomator2 Driver, run the following command:

shell
appium driver doctor uiautomator2

This command will check for all required tools and configurations. If any issues are found, follow the provided instructions to resolve them.