Skip to content

Instantly share code, notes, and snippets.

@moredip
Created April 3, 2014 23:32
Show Gist options
  • Save moredip/9964981 to your computer and use it in GitHub Desktop.
Save moredip/9964981 to your computer and use it in GitHub Desktop.
How to point capybara to custom phantom or chromedriver executable
if RUBY_PLATFORM =~ /darwin/
require 'selenium/webdriver'
Selenium::WebDriver::PhantomJS.path = File.expand_path( "../../../tools/phantomjs-osx", __FILE__ )
Selenium::WebDriver::Chrome::Service.executable_path = File.expand_path( "../../../tools/chromedriver-osx", __FILE__ )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment