Created
October 11, 2012 17:51
-
-
Save bramhaghosh/3874284 to your computer and use it in GitHub Desktop.
saucelabs demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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