Created
November 1, 2010 18:13
-
-
Save cassiomarques/658634 to your computer and use it in GitHub Desktop.
Como fazer o webdriver aceitar os diálogos de confirmação JavaScript do browser (testei apenas no Chrome)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MacGyver mode ON | |
Quando /^sigo "([^"]*)" aceitando a confirmação$/ do |link| | |
page.execute_script("window.confirm = function() { return true; }") | |
click_link link | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Para os usuários de Steak + Capybara + Selenium: http://gist.github.com/65903 :)