thoughtbot/capybara-webkit

How to set javascript driver to Capybara webkit

lokeshh opened this issue · 1 comments

In the README it is mentioned that following line has to be added:

Capybara.javascript_driver = :webkit

Where to add this line?

That depends on which framework you're using to test. If you're using a recent version of RSpec, you probably want to put it in spec/rails_helper.rb. Check out the Capybara setup guide for more information.