Skip to content

Instantly share code, notes, and snippets.

@richdownie
Created April 25, 2013 15:41
Show Gist options
  • Save richdownie/5460724 to your computer and use it in GitHub Desktop.
Save richdownie/5460724 to your computer and use it in GitHub Desktop.
profile = Selenium::WebDriver::Chrome::Profile.new
profile["intl.accept_languages"] = "de"
caps = Selenium::WebDriver::Remote::Capabilities.chrome(:profile => profile)
caps.platform = 'Linux'
caps.version = ''
caps[:name] = "Running tests in Chrome Linux"
driver = Selenium::WebDriver.for(
:remote,
:url => "http://USERNAME:[email protected]:80/wd/hub",
:desired_capabilities => caps)
Before do
@driver = driver
@target = 'http://sandbox.translatewiki.net/'
end
After do
@driver.quit
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment