Module: Datadog::CI::Contrib::Selenium::Patcher
- Includes:
- Tracing::Contrib::Patcher
- Defined in:
- lib/datadog/ci/contrib/selenium/patcher.rb
Overview
Patcher enables patching of ‘Selenium::WebDriver’ module.
Class Method Summary collapse
Class Method Details
.patch ⇒ Object
23 24 25 26 27 28 29 30 31 |
# File 'lib/datadog/ci/contrib/selenium/patcher.rb', line 23 def patch ::Selenium::WebDriver::Driver.include(Driver) ::Selenium::WebDriver::Navigation.include(Navigation) # capybara calls `reset!` after each test, so we need to patch it as well if defined?(::Capybara::Selenium::Driver) ::Capybara::Selenium::Driver.include(CapybaraDriver) end end |
.target_version ⇒ Object
19 20 21 |
# File 'lib/datadog/ci/contrib/selenium/patcher.rb', line 19 def target_version Integration.version end |