Get text from dialog box

Hi all,

I am trying to validate certain text appears in the top most dialog box (I'm validating a certain error message appears).  What is the best way to get a handle to the top most window and then validate that a specific string of text appears   I'm sure there are a million ways to do this; suggestions appreciated.

 

SeattleCard



Answer this question

Get text from dialog box

  • yln

    Hi,

    Do you own these top most windows I mean did you create it if you do then you could just provide a public variable that exposes these messages...

    Or, if not, you could just get the form instance then traverse on its controls collection, see if there is a label control and just read what's on the text property...

     

     

    cheers,

    Paul June A. Domag



  • Get text from dialog box