Monday, October 27, 2014

WebDriver and AndroidDriver

This is my notes in installing WebDriver and AndroidDriver
As of the moment these are what's available
selenium-2.43.1
adt-bundle-windows-x86_64-20140702
eclipse (I'm using the one the came with adt bundle)

Followed instructions found in https://code.google.com/p/selenium/wiki/AndroidDriver

For your SDK, you can download and install any Android version that you need. I've actually downloaded several versions like Android 5.0 (API 21) down to Android 4.0 (API 14). I just need the versions for my testing purposes.

I'll be using API 19 as my emulator in running my WebDriver.

When I reached the section Run the Tests in AndroidDriver website, eclipse can't seem to find
import org.openqa.selenium.android.AndroidDriver;


Where is this class?

So I went back to selenium website http://www.seleniumhq.org/download/
to check the Javadoc and didn't find the AndroidDriver I needed. So I went to google download list and searched for all available items to download and then sorted it by date (DESC).

https://code.google.com/p/selenium/downloads/list

I've downloaded this version, selenium-java-2.39.0, which is deprecated already. I downloaded it anyway since I just want to know if the project will build without error. So I've imported the jars and successful built it.

Selenium Change Log (2.40 and up)
If you've noticed for selenium version higher than 2.39 the AndroidDriver was removed in Selenium. If you check the log, they did that so that if you want to use the android driver you'll have to use Selendroid.

No comments:

Post a Comment