How to Migrate From Capybara Webkit to Webdrivers
21-May-2020 1625
By default, Capybara uses rack-test as the driver. Unfortunately rack-test does not support JavaScript. If we want to test things that rely on JavaScript, we need a driver with JS capabilities. Some of these drivers open up a web browser and show us all the activity.Having the browser show up while the tests are running is not that practical and usually quite slow. The good news is that we can use headless features on browsers like Chrome or Firefox (even Edge). A few years ago the available options were mainly PhantomJS or capybara-webkit (which uses QtWebKit), but these options had its development suspended.
How to Migrate From Capybara Webkit to Webdrivers #ruby #rubydeveloper #rubyonrails #Migrate #Capybara #Webkit #Webdrivers #webkit https://rubyonrails.ba/link/how-to-migrate-from-capybara-webkit-to-webdrivers