Hi all ,
i am new QTP i just want to know how to use regular expressions for the objects in the web page.
My problem is that i have a link in web page which keeps changing dynamically..so i am unable to click on that link consistentely.so i want to use regular expression on the link name.
is this the proper way...please suggest me
Shankar, Yes..u can use the R.E to click/ identify any dynamic object.
It depends on which object is dynamic.
Say for instance (as in ur ex.) its a link:
Some props. used to identify a link are :
Innertext or Text. You can either parameterize this prop. or you can use R.E to identify it dynamically.
Say: the Dynamic Link on ur Webpage may take any of the Values : "Link111", "LinkAAA", "Link", "Link-Hi".
In such a case (or similar) u can use R.E as
"InnerText" or "Text" prop = Link.* (Which identifies a link Named "Link" followed by any other text.
thanx for the reply...you mean to say in the O.R i need change(use R.E) for the text or innertext property.I did all those things but it is not identifying the objects..there is no use of changing the propeties with R.E in O.R
these things are fine in WinRunner .. but i am unable to use in QTP.
actualy i want to click on the link "Inbox" if i have some unread messages in the inbox it will change to "Inbox(x)" now if i want to click on "Inbox" it will not work.
I have changed the property "Text" to "Inbox.*" and checked the regular expression checkbox.
I was using 14 days evaluation version of QTP ...now it got expired ...I need some time to get the licence ..so i am unable to produce the error message