Categories
Automation Capybara Software Testing Tutorial

How to choose default driver in Capybara?

Capybara uses the same DSL to drive a variety of browser and headless drivers. The default drivers for Capybara is RACK WebDriver. Common Capybara WebDrivers 1. RACK (default) 2. Selenium 3. Capybara-webKit 4. Poltergeist (headless) Syntax for selecting drivers Capybara.default_driver = :[driver name] example: Capybara.default_driver = :rack_test Capybara.default_driver = :selenium You can change the default […]