Confirmation
From STIQ
storeConfirmation ( variableName )
- assertConfirmation ( pattern )
- assertNotConfirmation ( pattern )
- verifyConfirmation ( pattern )
- verifyNotConfirmation ( pattern )
- waitForConfirmation ( pattern )
- waitForNotConfirmation ( pattern )
Returns:
- The message of a JavaScript confirmation dialog generated during the previous action.
- By default, the confirm function will return true, having the same effect as manually clicking OK. This can be changed by prior execution of the chooseCancelOnNextConfirmation command. If a confirmation is generated but you do not get/verify it, the next Selenium action will fail.
Note:
- Under Selenium, JavaScript confirmations will NOT pop up a visible dialog.
- Selenium does NOT support JavaScript confirmations that are generated in a page's onload() event handler. In this case a visible dialog WILL be generated and Selenium will hang until you manually click OK.
