Features
< Back to Blog Overview

Mobile Testing with Android

2012-01-16
Mobile Testing with Selenium and Android Ice Cream Sandwich
  • Share on Facebook
  • Share on Twitter
  • Share on LinkedIn
  • Share on HackerNews

Today we've added Android to our Selenium grid, which means you can now use our grid for mobile testing as well. We've hooked up an Android Ice Cream Sandwich emulator to the grid, which speaks Webdriver protocol.


You can now test how your website behaves and how a page looks like on an Android cellphone by using webdriver. An example in ruby code:

#!/usr/bin/env ruby

require "rubygems"
gem "selenium-client"
gem "selenium-webdriver"
require "selenium-webdriver"
require "selenium/client"

caps = Selenium::WebDriver::Remote::Capabilities.android
driver = Selenium::WebDriver.for(
  :remote,
  :url => "http://api_key:api_secret@hub.testingbot.com:4444/wd/hub",
  :desired_capabilities => caps)
driver.navigate.to "http://www.google.com"
element = driver.find_element(:name, 'q')
element.send_keys "Hello WebDriver!"
element.submit
puts driver.title
driver.quit

Starting from today this functionality is available to all our customers. Let us know what you think. Enjoy!

TestingBot Logo

Sign up for a Free Trial

Start testing your apps with TestingBot.

No credit card required.

Other Articles

Receive SMS alerts when a Selenium test fails

Today we've added SMS support to our alert options. If a test fails, we can now alert you via e-mail, push notification and SMS.

Read more
Selenium automated browser testing with C# and NUnit.

In this blog post we'll highlight how easy it is to start testing websites with .NET framework 4 or .NET framework 3 and C#. NUnit is built for al...

Read more
Selenium 2.16.1, ChromeDriver 18.0.995.0 and C# with NUnit

We are pleased to announce that we have updated our Selenium grid to the latest Selenium version, 2.16.1 Changes include improved stability an...

Read more