How to Migrate From Capybara Webkit to Webdrivers

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 #webkit https://rubyonrails.ba/single/how-to-migrate-from-capybara-webkit-to-webdrivers

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles