Skip to content

Instantly share code, notes, and snippets.

@j1n6
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j1n6/9911254 to your computer and use it in GitHub Desktop.
Save j1n6/9911254 to your computer and use it in GitHub Desktop.
require "watir-webdriver"
caps = Selenium::WebDriver::Remote::Capabilities.firefox
caps.platform = :LINUX
caps[:name] = "WebDriver"
browser = Watir::Browser.new(:remote, url: "http://192.168.119.118:4444/wd/hub", desired_capabilities: caps)
browser.goto "http://www.google.com"
browser.quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment