Created
May 27, 2014 07:46
-
-
Save barancev/0de9902b3f9eb246ad53 to your computer and use it in GitHub Desktop.
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
WebDriver original = new FirefoxDriver(); | |
SimpleUnhandledAlertHandler handler = new SimpleUnhandledAlertHandler(); | |
UnhandledAlertHandlingWrapper wrapper = new UnhandledAlertHandlingWrapper(original); | |
wrapper.registerAlertHandler(handler); | |
WebDriver driver = wrapper.getDriver(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment