• Skip to main content
  • Skip to primary sidebar

AutomationTestingHub

Selenium, Appium, Cucumber and more !!!

Install UiAutomator2 Driver

July 9, 2023 by anish Leave a Comment

In our previous article on Appium Tutorial series, you learned how to install Appium 2 server using NPM. In this article, we will cover the steps using which you can install UiAutomator2 driver. Before we begin, let us have a quick look at what UiAutomator2 driver is.

What is an Appium Driver?

As you already know, Appium is an open-source project which can be used to perform UI automation on many app platforms such as iOS, Android, Chrome, Firefox, Roku, Android TV and much more.

Now, the next question that comes to the mind is, how is Appium able to connect to all these different types of platforms for perform UI automation. Well, this is where Appium Drivers come into picture.

Essentially, Appium Drivers are modules which provide Appium with the power to automate a given platform. For example, Apple has a technology called XCUITest for UI automation of Apple platforms like iOS, iPadOS etc. And Appium has a driver called XCUITest Driver, which can, in simple terms, interact with XCUITest library and help with UI automation of these Apple platforms

What is UiAutomator2 Driver?

Similar to what XCUITest is for Apple, UI Automator is a UI testing framework maintained to Google to automate Android platform. And hence, UiAutomator2 driver is the Appium Driver which interacts with UI Automator framework to perform automation testing on Android

Steps to install UIAutomator2 Driver

Step 1) Open command prompt and run this command –

appium driver install uiautomator2
install-uiautomator2-driver

Step 2) Once you hit Enter, NPM will start installing the driver

install-uiautomator2-driver-installation-in-progress

Step 3) Once the installation is complete, you will see the command prompt screen as shown in the below image

uiautomator2 driver - installation completed

If you notice in the above screenshot, the logs show the platform name supported by the Appium driver you download. So in this case, you have downloaded UiAutomator2 driver which supports Android platform.

As a last check, let us start the appium server as well by running appium command. You will see that the logs mention UiAutomator2 in the list of available drivers. You can compare this with our previous article on installing Appium 2 server, where the logs showed – No drivers have been installed message

With this, we have completed our article on how to install UiAutomator2 driver. Head over to our Appium Tutorial page for the next set of articles on Appium installation and setup.

Filed Under: Appium

Primary Sidebar

Automation Testing Hub

Tutorials Guide

Write test scripts in BDD format using our Cucumber Selenium Tutorial

Use our Appium Tutorial Series to setup Appium from scratch

Categories

  • Android
  • Appium
  • Cucumber
  • Java
  • Playwright
  • Selenium
  • Tosca

Recent Posts

  • Appium Inspector – Download and Install
  • How to download Chromedriver for Selenium
  • Run Playwright tests on different browsers
  • Playwright Automation Testing Tutorial
  • Selenium IDE Chrome Download

Recent Comments

  • Run Playwright tests on different browsers - AutomationTestingHub on Playwright Automation Testing Tutorial
  • Confluence: CPSSoft Test Framework on Appium Inspector – Download and Install
  • Playwright Automation Testing Tutorial - AutomationTestingHub on Download and Install – Node.js and NPM
  • Chrome浏览器在使用Java的Appium中无法启动。 | JAVA语言的经验与见解 on 2 Ways to find appPackage and appActivity name of your App
  • Appium Inspector Tutorial - AutomationTestingHub on Download and Install Appium 2 Server

Archives

  • January 2024
  • July 2023
  • March 2023
  • February 2023
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
  • November 2017
  • October 2017
  • September 2017
  • August 2017
  • July 2017
  • June 2017
  • May 2017
  • April 2017
  • March 2017
  • November 2016
  • October 2016
  • September 2016
  • August 2016
  • July 2016
  • June 2016

Latest Selenium 3 Guide

Are you using the latest version of Selenium WebDriver? It provides lot better support for the latest browser versions. Check it out here - Setup Latest Selenium WebDriver

Categories

  • Android
  • Appium
  • Cucumber
  • Java
  • Playwright
  • Selenium
  • Tosca

Copyright © 2025 · Genesis Sample on Genesis Framework · WordPress · Log in

Go to mobile version