Skip to content

Instantly share code, notes, and snippets.

@mubbashir
Created March 26, 2014 03:56
Show Gist options
  • Save mubbashir/9776740 to your computer and use it in GitHub Desktop.
Save mubbashir/9776740 to your computer and use it in GitHub Desktop.
setting up chrome-driver path in ruby
require 'selenium-webdriver'
Selenium::WebDriver::Chrome.driver_path="/path/to/chrome_driver_binary/chromedriver"
driver = Selenium::WebDriver.for :chrome
driver.get("http://google.com")
@rafapolo
Copy link

Selenium::WebDriver::Chrome#driver_path= is deprecated. Use Selenium::WebDriver::Chrome::Service#driver_path= instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment