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