Skip to content

Instantly share code, notes, and snippets.

@marat-chardymov
Last active February 5, 2018 14:22
Show Gist options
  • Save marat-chardymov/b31bb34436935aa803370af201080f21 to your computer and use it in GitHub Desktop.
Save marat-chardymov/b31bb34436935aa803370af201080f21 to your computer and use it in GitHub Desktop.
$ brew install chromedriver
#########################
Gemfile
group :test do
gem "chromedriver-helper"
gem 'selenium-webdriver'
end
########################
rails_helper.rb
Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
Capybara.javascript_driver = :chrome
Capybara.configure do |config|
config.default_driver = :chrome
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment