How to install Webdriver on Android Emulator on Windows
Following my previous post, I needed to install Webdriver on Android Emulator. I have Windows 7 installed and most of the instructions were for Linux, so I thought this might be helpful.
So even this is pretty straight forward. Let’s run through the steps I followed to install Webdriver:
So even this is pretty straight forward. Let’s run through the steps I followed to install Webdriver:
- Download “android-server-2.0.2rc3.apk ” from the following location http://code.google.com/p/selenium/downloads/list.
- Copy the above downloaded file into folder “C:\Program Files\Android\android-sdk\platform-tools”
- Run the “Command Prompt” as administrator.
- Execute “cd C:\Program Files\Android\android-sdk\platform-tools”
- Execute the command “adb install android-server-2.0.2rc3.apk”
- We also need to set up Port forwarding, run the command “adb forward tcp:8080 tcp:8080"
- Click on the WebDriver app on Emulator and this will make the android server available at “http://localhost:8080/wd/hub”. Opening this URL in Firefox will show up a blank page on success.
- Confirm the following settings on your emulator : Settings -> Applications -> Development -> Check "USB debugging", "Stay Awake" and "Allow mock locations".
- Launch the emulator, it will have Webdriver installed. When you launch the Webdriver, it will confirm “jetty started”