Mobile Testing with Selenium and Android Ice Cream Sandwich
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:[email protected]: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!
< Back to Blog Overview