Created
October 11, 2010 23:07
-
-
Save sgrove/621379 to your computer and use it in GitHub Desktop.
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
# Sauce::Selenium_browsers will have all your browsers | |
JSON.parse(ENV["SAUCE_ONDEMAND_BROWSERS"]).each do |selenium_browser| | |
@browser = Selenium::Client::Driver.new(:host => ENV["SAUCE_ONDEMAND_SERVER"], | |
:port => ENV["SAUCE_ONDEMAND_PORT" ], | |
:url => ENV["SAUCE_ONDEMAND_URL" ], | |
:browser => selenium_browser, | |
:timeout_in_second => 90) | |
@browser.start_new_browser_session | |
@browser.open "/" | |
@browser.close | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment