Created
March 26, 2014 03:56
-
-
Save mubbashir/9776740 to your computer and use it in GitHub Desktop.
setting up chrome-driver path in ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'selenium-webdriver' | |
Selenium::WebDriver::Chrome.driver_path="/path/to/chrome_driver_binary/chromedriver" | |
driver = Selenium::WebDriver.for :chrome | |
driver.get("http://google.com") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Selenium::WebDriver::Chrome#driver_path= is deprecated. Use Selenium::WebDriver::Chrome::Service#driver_path= instead.