Skip to content

Instantly share code, notes, and snippets.

@bramhaghosh
Created October 11, 2012 17:51
Show Gist options
  • Save bramhaghosh/3874284 to your computer and use it in GitHub Desktop.
Save bramhaghosh/3874284 to your computer and use it in GitHub Desktop.
saucelabs demo
require 'pry'
require 'watir-webdriver'
include Selenium
def capabilities
opts = {:platform => :any, :javascript_enabled => true}
capabilities = WebDriver::Remote::Capabilities.ie(opts)
end
def set_up_grid_browser
@browser = Watir::Browser.new(:remote,
:url => "http://uniuq_username_goes_here:[email protected]:80/wd/hub",
:desired_capabilities => capabilities)
@browser.driver.manage.timeouts.implicit_wait = 30
@browser
end
set_up_grid_browser
binding.pry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment