Skip to content

Instantly share code, notes, and snippets.

@edipofederle
Created December 31, 2010 14:24
Show Gist options
  • Select an option

  • Save edipofederle/761050 to your computer and use it in GitHub Desktop.

Select an option

Save edipofederle/761050 to your computer and use it in GitHub Desktop.
Then /^I confirm dialog on the next stpe$/ do
page.evaluate_script("window.alert = function(msg) {return true; }")
page.evaluate_script("window.confirm = function(msg) {return true; }")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment