Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Verifying the text on the dialog box
#1
Not Solved
Hi,

I need to verify the text on the dialog box that appears on clicking a button.

I'm using the following statement
Code:
sText = Browser("abc").Dialog("Microsoft Internet Explorer").GetVisibleText

The text on the dialog shows as
abc
xyz
123

The value of sText during the script run shows as
Microsoft Internet Explorer abc(somecharacter)(somecharacter)xyz(somecharacter)(somecharacter)123

How do I compare the text and how do I use the regular expression?
Thanks a lot in advance!

~Gan
Reply
#2
Not Solved
Did you try the "Object Spy"?
Once you see the required value, capture it using GetROProperty.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Not Solved
Hi,
You can use below Reg Exp Pattern

Code:
"Microsoft Internet Explorer abc\([a-z\d]\)\([a-z\d]\)xyz\([a-z\d]\)\([a-z\d]\)123"

Thanks
VENKATA
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  RegularExpression for verifying minimum number bostonma 1 2,806 04-15-2009, 05:13 PM
Last Post: dvkbabu

Forum Jump:


Users browsing this thread: 1 Guest(s)