I tried a few examples found on the internet but no luck. I want to confirm the deletion link confirmation message. The last attempt was the code below, but this led to a Capybara :: NotSupportedByDriverError error.
def confirm_dialog page.evaluate_script('window.confirm = function() { return true; }') end
ruby-on-rails testing capybara
Eric M. Aug 03 2018-11-18T00: 00Z
source share