Skip to content

waitForAlert (UI Automation - Synchronization)

Compatible with:
  • Purpose
  • This command is used to wait for alert if an alert is occurs after performing actions on the web page.
  • 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.
  • Syntax
  • waitForAlert(pattern)
  • Target
  • pattern
  • Value
  • N/A
  • Return Value
  • Retrieves the message of a JavaScript alert generated during the previous action, or fail if there is no alert.
 
 

Feedback and Knowledge Base