lib/capybara/window.rb in capybara-3.16.2 vs lib/capybara/window.rb in capybara-3.17.0
- old
+ new
@@ -47,10 +47,10 @@
##
# @return [Boolean] whether this window is the window in which commands are being executed
def current?
@driver.current_window_handle == @handle
- rescue @driver.no_such_window_error
+ rescue @driver.no_such_window_error # rubocop:disable Naming/RescuedExceptionsVariableName
false
end
##
# Close window.