Skip to content

Instantly share code, notes, and snippets.

@keeran
Created July 30, 2010 01:41
Show Gist options
  • Select an option

  • Save keeran/499689 to your computer and use it in GitHub Desktop.

Select an option

Save keeran/499689 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