Let’s Talk About Drivers
Explore the different Capybara drivers used in JavaScript integration testing with Rails. Understand how drivers like Rack::Test, Selenium, Poltergeist, and headless Chrome operate, and learn how to configure Capybara to use the appropriate JavaScript driver for your tests.
Capybara drivers
To understand what Capybara is doing and what we need to do to make JavaScript integration testing work, we need to know about drivers. The driver is the part of Capybara that actually manages a web page as a series of DOM elements. The Capybara query ...