Created
October 11, 2012 17:51
-
-
Save bramhaghosh/3874284 to your computer and use it in GitHub Desktop.
Revisions
-
bramhaghosh created this gist
Oct 11, 2012 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ 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:0797186a-8407-4966-a9cd-fbf954d92b3c@ondemand.saucelabs.com:80/wd/hub", :desired_capabilities => capabilities) @browser.driver.manage.timeouts.implicit_wait = 30 @browser end set_up_grid_browser binding.pry