Skip to content

Instantly share code, notes, and snippets.

@tourdedave
Last active August 29, 2015 14:01
Show Gist options
  • Save tourdedave/cb507bfb91d40f368001 to your computer and use it in GitHub Desktop.
Save tourdedave/cb507bfb91d40f368001 to your computer and use it in GitHub Desktop.
java -jar selenium-server-standalone-2.42.0.jar -role hub
java -jar selenium-server-standalone-2.42.0.jar -role node -browser browserName=safari -hub http://localhost:4444/grid/register
require 'selenium-webdriver'
driver = Selenium::WebDriver.for(:remote,
url: 'http://localhost:4444/wd/hub',
desired_capabilities: :safari)
driver.get 'http://the-internet.herokuapp.com'
driver.quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment