Class: Datadog::CI::Contrib::Selenium::Integration
- Inherits:
-
Integration
- Object
- Integration
- Datadog::CI::Contrib::Selenium::Integration
show all
- Defined in:
- lib/datadog/ci/contrib/selenium/integration.rb
Overview
Description of Selenium integration
Constant Summary
collapse
- MINIMUM_VERSION =
Gem::Version.new("4.0.0")
Instance Method Summary
collapse
Methods inherited from Integration
#available?, #configuration, #configure, #dependants, #enabled, inherited, #patchable?, #patched?
Instance Method Details
#compatible? ⇒ Boolean
24
25
26
|
# File 'lib/datadog/ci/contrib/selenium/integration.rb', line 24
def compatible?
super && version >= MINIMUM_VERSION
end
|
#late_instrument? ⇒ Boolean
additional instrumentations for test libraries are late instrumented on test session start
29
30
31
|
# File 'lib/datadog/ci/contrib/selenium/integration.rb', line 29
def late_instrument?
true
end
|
#loaded? ⇒ Boolean
19
20
21
22
|
# File 'lib/datadog/ci/contrib/selenium/integration.rb', line 19
def loaded?
!defined?(::Selenium).nil? && !defined?(::Selenium::WebDriver).nil? &&
!defined?(::Selenium::WebDriver::Driver).nil?
end
|
#new_configuration ⇒ Object
33
34
35
|
# File 'lib/datadog/ci/contrib/selenium/integration.rb', line 33
def new_configuration
Configuration::Settings.new
end
|
#patcher ⇒ Object
37
38
39
|
# File 'lib/datadog/ci/contrib/selenium/integration.rb', line 37
def patcher
Patcher
end
|
#version ⇒ Object
15
16
17
|
# File 'lib/datadog/ci/contrib/selenium/integration.rb', line 15
def version
Gem.loaded_specs["selenium-webdriver"]&.version
end
|