lib/capybara/window.rb in capybara-3.22.0 vs lib/capybara/window.rb in capybara-3.23.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 # _rubocop:disable Naming/RescuedExceptionsVariableName + rescue @driver.no_such_window_error false end ## # Close window.