Testing the Mobile Web

Demo Video

Getting Started

Make sure you've got the basic System Requirements setup

Run the selendroid-standalone server:

java -jar selendroid-standalone-0.17.0-with-dependencies.jar

The Test

Start your driver using Selenium's "Android" Desired Capability:

Java:

WebDriver driver = new RemoteWebDriver(DesiredCapabilities.android());
driver.get("http://google.com");

A full sample about how to test the mobile web in Java you find here.

Ruby:

driver = Selenium::WebDriver.for :remote, :desired_capabilities => :android
driver.get "http://google.com"

Python:

driver  = webdriver.Remote(desired_capabilities=webdriver.DesiredCapabilities.ANDROID)
driver.get("http://google.com")