Opera Automated Selenium Testing and Manual Browser testing

opera

TestingBot now supports the latest Opera versions for both Automated and Manual Browser Testing.
As Opera is regarded as the fifth most popular browser on the web, we decided that it was important to make Opera testing available for all TestingBot users.

At the time of writing, the latest version of Opera (blink) is version 38.
You can now run your automated Selenium WebDriver tests on Opera 38, 37 and 36, take screenshots and do manual testing via TestingBot.

Opera is a fast browser, during our tests we noticed that it starts up very fast and runs the automated tests fast. To control the Opera browser during testing, we use the Opera Chromium Driver behind the scenes.

As a TestingBot user, to run an Automated test, please see this code example:

#!/usr/bin/env ruby

require 'rubygems'
require 'selenium-webdriver'

caps = {}
caps.browserName = "opera"
caps.version = 38
caps.platform = "WIN10"
caps.name = "My First Opera Test"

client = Selenium::WebDriver::Remote::Http::Default.new
client.timeout = 120

driver = Selenium::WebDriver.for(
  :remote,
  :url => "http://key:secret@hub.testingbot.com/wd/hub",
  :desired_capabilities => caps,
  :http_client => client)
driver.navigate.to "http://www.google.com"
element = driver.find_element(:name, 'q')
element.send_keys "TestingBot"
element.submit
puts driver.title
driver.quit

No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *