Getting started with Mobile Automation using Appium for Android


Appium is a free open-source mobile automation tool from Saucelabs.

It is based on Selenium and borrows heavily from Selenium Webdriver.

The advantages of using Appium:

  1.  Appium is based on Selenium WebDriver so you can easily learn it. The same process of finding elements using xpath, ids etc,  also work here
  2.  Using Appium, you test the production apk file. In short you don't mess with the application under test. 
  3. You can use your favourite programming language 
What you need to get started with mobile automation for android?
  1.  Android SDK with eclipse
  2. An emulator or a real device running Android OS (In my case it is Nexus 5 running 5.0.1 Lollipop / Huawei Media pad running 4.3 Jelly bean)
  3. USB debugging options set 
More information about the above requirements are explained in detail here:

How to install Appium on Windows?
  • Install the latest Appium for Windows

    The latest downloads are present here:

Take the latest Appium for Windows download
Here you are basically downloading the appium server.

  • Configure the system path in Windows
The path variable should contain correct Android SDK tools path

Path Variable settings
The path variable should also contain, Java SDK details and System root details For example as shown below

C:\Program Files\Java\jdk1.7.0_21\bin;E:\adt-bundle-windows-x86_64-20140702\sdk;E:\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;E:\adt-bundle-windows-x86_64-20140702\sdk\tools;%SystemRoot%\system32;%SystemRoot%

  • Start the Appium server
Start Appium Server
 An application will open, just click on the play button at the top right hand side corner.
The server will start at :

Sample project
Installing WhatsApp on Android device and clicking Eula accept button using Appium

The entire Appium sample project can be downloaded for free via github:


Post a Comment

Written by Sundeep Machado © 2007 - 2018 Sundeep Machado

You can get in touch with him on and Twitter