Created
November 3, 2015 12:04
-
-
Save hectorperez/7f70a624153bf7c9147c to your computer and use it in GitHub Desktop.
click an alert box - capybara
This file contains hidden or 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
For WebKit: | |
page.accept_confirm { click_button "Upgrade" } | |
For Selenium: | |
page.driver.browser.switch_to.alert.accept |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment