Forum Discussion

rfrezino's avatar
rfrezino
New Contributor
13 years ago

How to check the text inside of MessageDlg

Hi, 

  I have a Delphi application that uses the MessageDlg (delphi function that calls TaskDialogIndirect from comctl32.dll) to display the alert messages to user.

  I need to check the message inside of it on TestComplete, but I'm not able to get the text as a property. 

  How can I do it ? 

  

  In the image below with a red index is the text that I'd like to check.

  



Regards 

1 Reply


  • Hi Rodrigo,


     


    Try using Object Spy to catch the text. I suppose that there should be the following property in the dialog:


    VCLObject("Message").Caption