thoughtbot / capybara-webkit

A Capybara driver for headless WebKit to test JavaScript web apps
https://thoughtbot.com/open-source
MIT License
1.97k stars 428 forks source link

How to set javascript driver to Capybara webkit #1014

Closed lokeshh closed 7 years ago

lokeshh commented 7 years ago

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

Capybara.javascript_driver = :webkit

Where to add this line?

jferris commented 7 years ago

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.