O'Reilly logo

Selenium 2 Testing Tools Beginner's Guide by David Burns

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – creating an emulator

If you do not have an Android device that you can use for testing, then you can set up an Android emulator. The emulator will then get the Selenium WebDriver APK installed and then that will control the browser on the device. Before we start, you will need to download the Android SDK from http://developer.android.com/sdk/index.html.

  1. Open up a command prompt or a terminal.
  2. Enter cd <path>/android-sdk/tools where <path> is the path to the android-sdk directory.
  3. Now enter ./android create avd -n my_android -t 14 where:
    • –n my_android gives the emulator the name my_android.
    • t 14 tells it which version of android to use. 14 and higher is Android 4 and higher support.
  4. When prompted Do you wish to create a custom hardware ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required