|
ChooseCancelOnNextConfirmation
Choose cancel on next confirmation
Description By default, Selenium's overridden window.confirm() function will return true, as if the user had manually clicked OK; after running this command, the next call to confirm() will return false, as if the user had clicked Cancel. Selenium will then resume using the default behavior for future confirmations, automatically returning true (OK) unless/until you explicitly call this command for each confirmation. Properties
Diagram Example
This test is available in the CubicExTest project including the HTML pages. Check the DownloadingSources page to see how you can download and setup your Eclipse for this project. |
Sign in to add a comment