Skip to content

Instantly share code, notes, and snippets.

@nativestranger
Created March 16, 2017 17:51
Show Gist options
  • Save nativestranger/38766da45c49e310245439ab6ea4ea09 to your computer and use it in GitHub Desktop.
Save nativestranger/38766da45c49e310245439ab6ea4ea09 to your computer and use it in GitHub Desktop.
@browser = Watir::Browser.new(
:remote,
url: "http://#{ ENV['SAUCE_USER_NAME'] }:#{ ENV['SAUCE_API_KEY'] }@ondemand.saucelabs.com:80/wd/hub",
desired_capabilities: { 'browserName' => ENV['SELENIUM_BROWSER'],
'version' => ENV['SELENIUM_VERSION'],
'platform' => ENV['SELENIUM_PLATFORM'] }
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment