About TestingBot


TestingBot offers easy online Selenium testing.
Use our Selenium grid to run tests across multiple browsers (over 58 combinations!).

We can run your Selenium tests on a daily basis and alert you when a test fails.

Interested? Take a look at our features.


Opera Mobile Emulator testing with Selenium WebDriver

Opera Mobile Emulator

OperaDriver has recently been updated to support running Selenium tests on the Opera Mobile Emulator.
The update will land in Selenium 2.26, but we couldn’t wait and decided to already add it to our Selenium Grid.

By specifying some desired capabilities, you can run your tests on a specific emulated device.
You can change the resolution of the screen, the pixel density and the UI.
Here’s an example where we run a test on the tablet UI with a 800×600 display:

caps = {
  :browserName => "operea",
  :platform => "LINUX",
  'opera.product' => 'mobile',
  'opera.arguments => '-tabletui -displaysize 860x600'
}

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 "http://testingbot.com"
puts @webdriver.title
@webdriver.quit

Right now Opera Mobile support is still robust and in need for some (minor) tweaks, but we think it’s starting to look good.
If you want to give it a try, you can run the example on our grid.

Interested in running tests on other mobile devices? Check out our supported emulators (iPhone/iPad/Android) on our mobile page.

More information about OperaDriver and its emulator is available on: [dev.opera.com] Introducing mobile browser automation and [github.com] OperaDriver

VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Opera Mobile Emulator testing with Selenium WebDriver, 10.0 out of 10 based on 1 rating

About the Author

Selenium fanatic at TestingBot

Leave a Reply




If you want a picture to show with your comment, go get a Gravatar.