Forum Discussion

pschutz's avatar
pschutz
Occasional Contributor
14 years ago

Get alert to appear

I want to create an alert with JScript that will display in the middle of a test.  I tried window.alert("This is my alert") with no success. Is there any way to get an alert to work.

4 Replies

  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    Hi Patrick,



    Have a look at aqDlg.MessageDlg() function. Does it work for you?
  • pschutz's avatar
    pschutz
    Occasional Contributor
    It doesn't work for me.  I need a message to display in a regular TestComplete script, not a script extension.
  • AlexKaras's avatar
    AlexKaras
    Champion Level 3
    That's strange...

    What about BuiltIn.ShowMessage() and aqDlg.ShowMessage() ?
  • pschutz's avatar
    pschutz
    Occasional Contributor
    That one works great (BuiltIn.ShowMessage()).  Thanks!