Skip to content

Instantly share code, notes, and snippets.

@santiycr
Created April 3, 2011 21:40
Show Gist options
  • Save santiycr/900852 to your computer and use it in GitHub Desktop.
Save santiycr/900852 to your computer and use it in GitHub Desktop.
require 'rubygems'
require "watir-webdriver"
username = "username"
access_key = "access-key"
#caps = Selenium::WebDriver::Remote::Capabilities.iexplore
#caps.version = "8"
#caps.platform = "WINDOWS"
#
caps = {:platform => "WINDOWS", :version => "8", :browserName => "internet explorer"}
b = Watir::Browser.new(:remote,
:url => 'http://#{username}:#{access_key}@saucelabs.com:4444/wd/hub',
:desired_capabilities => caps)
b.goto("http://google.com")
puts b.title
b.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment