Hi
I am a newbie here with QTP but would like to ask a question about checking text on a pop-up. The text says "MESSAGE: :File was successfully uploaded "
Also object spy says: <multi-line value>
Also
In the object repository the text property is set to:
MESSAGE: File was successfully uploaded
(guess there was a new line character there) so I set it (in the Object properties) to:
MESSAGE: File was successfully uploaded.*
and regular expression is ticked.
If I click locate in application it finds the text, except that when I run the code it doesn't seem to work.
Any pointers in where I am going wrong?
I am a newbie here with QTP but would like to ask a question about checking text on a pop-up. The text says "MESSAGE: :File was successfully uploaded "
Also object spy says: <multi-line value>
Code:
Browser("_Maintenance").Dialog("Microsoft Internet Explorer").Static("MESSAGE: File was successfully").WaitProperty "text", "MESSAGE: File was successfully uploaded "
the is a space after the "uploaded"
OR
Browser("_Maintenance").Dialog("Microsoft Internet Explorer").Static("MESSAGE: File was successfully").CheckProperty "text", "MESSAGE: File was successfully uploaded "
Also
In the object repository the text property is set to:
MESSAGE: File was successfully uploaded
(guess there was a new line character there) so I set it (in the Object properties) to:
MESSAGE: File was successfully uploaded.*
and regular expression is ticked.
If I click locate in application it finds the text, except that when I run the code it doesn't seem to work.
Any pointers in where I am going wrong?