We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5f7521 commit 8e45d35Copy full SHA for 8e45d35
rb/spec/integration/selenium/webdriver/spec_helper.rb
@@ -64,8 +64,12 @@
64
end
65
66
c.after do |example|
67
- result = example.execution_result
68
- reset_driver! if example.exception || result.pending_exception
+ if example.exception && WebDriver.logger.debug?
+ driver.save_screenshot("bazel-logs/#{driver.session_id}.png")
69
+ WebDriver.logger.info("Page Source: #{driver.page_source}")
70
+ end
71
+
72
+ reset_driver! if example.exception || example.execution_result.pending_exception
73
74
75
0 commit comments