Skip to content

assertAlert (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Generated from getAlert() 
  • This command is used to check if the application under test (AUT) has thrown an alert with the text supplied (in the Target field) and then accept it.  If no alert is shown by the application, the command fails and the execution of the test is stopped. 
  • Syntax
  • assertAlert(pattern)
  • Target
  • Text that need to verified on the alert
  • Value
  • N/A
  • Return Value
  • The message of the most recent JavaScript alert
 
 

Feedback and Knowledge Base