Skip to content

Instantly share code, notes, and snippets.

@rgo
Created June 11, 2010 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rgo/434446 to your computer and use it in GitHub Desktop.
Save rgo/434446 to your computer and use it in GitHub Desktop.
Given /^I will confirm on next step$/ do
begin
evaluate_script("window.alert = function(msg) { return true; }")
evaluate_script("window.confirm = function(msg) { return true; }")
rescue Capybara::NotSupportedByDriverError
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment