Skip to content

assertConfirmation (UI Automation - Interrogation)

Compatible with:
  • Purpose
  • Retrieves 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 an confirmation is generated but you do not consume it with getConfirmation, the next QaSCRIBE action will fail.

    NOTE: under QaSCRIBE, JavaScript confirmations will NOT pop up a visible dialog.

    NOTE: QaSCRIBE 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 QaSCRIBE will hang until you manually click OK.

  • Syntax
  • assertConfirmation(pattern)
  • Target
  • pattern
  • Value
  • N/A
  • Return Value
  • the message of the most recent JavaScript confirmation dialogs.
 

Feedback and Knowledge Base