Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r225970 - WebDriver: add support for accept/dismiss and notify …
…unhandled prompt behavior https://bugs.webkit.org/show_bug.cgi?id=179999 Reviewed by Carlos Alberto Lopez Perez. They work as accept and dismiss, but unexpected alert open is still reported. 18. User Prompts https://w3c.github.io/webdriver/webdriver-spec.html#dfn-known-prompt-handling-approaches-table * Capabilities.h: Add DismissAndNotify and AcceptAndNotify to UnhandledPromptBehavior enum. * Session.cpp: (WebDriver::Session::handleUnexpectedAlertOpen): Move default implementation to dismissAndNotifyAlert and acceptAndNotifyAlert and use dismissAndNotifyAlert by default. (WebDriver::Session::dismissAndNotifyAlert): (WebDriver::Session::acceptAndNotifyAlert): * Session.h: * WebDriverService.cpp: (WebDriver::deserializeUnhandledPromptBehavior): Handle accept/dismiss and notify. (WebDriver::WebDriverService::newSession): Ditto.
- Loading branch information
1 parent
d5eb393
commit 9d87846
Showing
5 changed files
with
70 additions
and
14 deletions.
There are no files selected for viewing
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
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
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
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
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