TestingBot Blog

TestingBot provides a cloud of browsers to run Automated, Live and Visual browser testing.

< Back to Blog Overview

iPhone and iPad Selenium Testing with Webdriver


Since our last post announcing Mac OS X Selenium support, we now have added iPhone and iPad to the mix.

You can now run your Selenium webdriver tests on iPad and iPhone (iOS 5.1) inside our grid.
Testing on iPad and iPhone happens with the official iOS Simulator from Apple and comes with a video and screenshots of the test.

At TestingBot we understand that mobile testing is becoming increasingly important, so that's why we are dedicated to provide you with the best solutions for mobile Selenium testing.

A simple example of how to run your first test on TestingBot:

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

caps = {
:browserName => "iphone", # or ipad
:platform => "MAC"
urlhub = "http://key:secret@hub.testingbot.com:4444/wd/hub"
client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120

webdriver = Selenium::WebDriver.for :remote,:url => urlhub , :desired_capabilities => caps, :http_client => client
webdriver.navigate.to "https://www.google.com/"
puts webdriver.title

You can find more info about our iOS and Android support in our mobile support area.

We look forward to your comments and suggestions.

< Back to Blog Overview