Skip to content

waitForNotAlert (UI Automation - Synchronization)

Compatible with:
  • Purpose
  • Generated from getNotAlert()
  • This command waits for an Alert, getting an alert has the same effect as manually clicking OK. If an alert is generated but you do not consume it with getAlert, the next QaSCRIBE action will fail. Under QaSCRIBE, JavaScript alerts will NOT pop up a visible alert dialog. QaSCRIBE does NOT support JavaScript alerts that are generated in a page's onload() event handler. In this case, a visible dialog WILL be generated and QaSCRIBE will hang until someone manually clicks OK.
  • waitForNotAlert(pattern)
  • Target
  • pattern - The value to be verified.
  • Value
  • N/A
  • Return Value
  • Pass, if there is no JavaScript alert generated during the previous action, or fails if there is an alert 

Feedback and Knowledge Base