selenium_shots 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -93,8 +93,8 @@ class SeleniumShots < ActionController::IntegrationTest
|
|
93
93
|
browsers = (@selected_browser || selected_browsers)
|
94
94
|
browsers.each do |browser_spec|
|
95
95
|
begin
|
96
|
-
run_browser(browser_spec, block)
|
97
96
|
@error = nil
|
97
|
+
run_browser(browser_spec, block)
|
98
98
|
rescue => error
|
99
99
|
@browser.close_current_browser_session if @browser
|
100
100
|
@error = error.message
|
@@ -122,6 +122,8 @@ class SeleniumShots < ActionController::IntegrationTest
|
|
122
122
|
@browser.start_new_browser_session
|
123
123
|
begin
|
124
124
|
block.call(@browser)
|
125
|
+
rescue => error
|
126
|
+
@error = error.message
|
125
127
|
ensure
|
126
128
|
save_test({:selenium_test_group_name => @@group, :selenium_test_name => @name,
|
127
129
|
:description => @@description}) if SeleniumConfig.mode == "remote"
|