diff --git a/lib/capybara/selenium/driver.rb b/lib/capybara/selenium/driver.rb index 6698d329..27c7b8bd 100644 --- a/lib/capybara/selenium/driver.rb +++ b/lib/capybara/selenium/driver.rb @@ -68,7 +68,7 @@ class Capybara::Selenium::Driver < Capybara::Driver::Base end def refresh - accept_modal(wait: 0.1) do + accept_modal(nil, wait: 0.1) do browser.navigate.refresh end rescue Capybara::ModalNotFound