20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/datadog/ci/contrib/selenium/driver.rb', line 20
def quit
return super unless datadog_configuration[:enabled]
Datadog.logger.debug("[Selenium] Driver quit event")
RUM.stop_rum_session(@bridge)
Datadog.logger.debug("[Selenium] RUM session stopped, deleting cookie")
@bridge.manage.delete_cookie(Ext::COOKIE_TEST_EXECUTION_ID)
rescue ::Selenium::WebDriver::Error::WebDriverError => e
Datadog.logger.debug("[Selenium] Error while quitting Selenium driver: #{e.message}")
ensure
super
end
|