Module: Applitools::Selenium::Capybara::CapybaraSettings
- Included in:
- Applitools
- Defined in:
- lib/applitools/selenium/capybara/capybara_settings.rb
Instance Method Summary collapse
-
#register_capybara_driver(options = {}) ⇒ Object
Registers Capybara driver which will be used by eyes and sets it as default Capybara driver.
Instance Method Details
#register_capybara_driver(options = {}) ⇒ Object
Registers Capybara driver which will be used by eyes and sets it as default Capybara driver. The name of the driver is :eyes, and the driver is a descendant of class Capybara::Selenium::Driver. Options are eventually passed to drivers constructor
11 12 13 14 15 16 17 |
# File 'lib/applitools/selenium/capybara/capybara_settings.rb', line 11 def ( = {}) Capybara.register_driver :eyes do |app| Applitools::Selenium::Capybara::Driver.new app, end Capybara.default_driver = :eyes Capybara.javascript_driver = :eyes end |