Posts: 31
Threads: 19
Joined: Jul 2009
Reputation:
0
07-21-2009, 12:12 PM
Hi All,
Can any body tell me how can I identify Dynamic objects in QTP and perform action on that using descriptive programming?
Actually i am struck, waiting for reply!!!!!!!!!!!
Thanks in advance
Posts: 516
Threads: 17
Joined: Jul 2009
Reputation:
3
07-21-2009, 12:33 PM
Hi Ritu,
Can you give me more details. Actually by using DP and Regular expressions we can work with Dynamic Objects in QTP.
Provide me you exact requirement so that i can help you.
Thanks,
SUpputuri
Posts: 31
Threads: 19
Joined: Jul 2009
Reputation:
0
07-21-2009, 02:15 PM
Hi QTPKing,
Actually i want to identify some text like "My Certifications (48)" , "1 - 48 of 48 records". these both are recognized as single objects. Here numeric values are dynamic, I want to recognize this objects and then want to fetch the new count to verify my case
Thanks
Posts: 28
Threads: 0
Joined: Jul 2009
Reputation:
0
07-21-2009, 02:47 PM
Hi Ritu,
Use Regular Expression for this numeric values .
for eg: in the object repository for the object set the property value as \d and enable the regular expression.This syntax will accept 0-9 digits.
Regards
Bala
Posts: 31
Threads: 19
Joined: Jul 2009
Reputation:
0
07-21-2009, 03:35 PM
Hi Bala,
Thanks for ur reply
Can u tell me the way to do through descriptive programming, actually i dont want keep my object in Object repository.
Regds,
Ritu
Posts: 28
Threads: 0
Joined: Jul 2009
Reputation:
0
07-21-2009, 03:48 PM
Hi Ritu,
Eg:-
Windows("value:=\d").click
like this script use in your application
kindly let me know if u have anyquery
Regards
Bala
Posts: 28
Threads: 0
Joined: Jul 2009
Reputation:
0
07-21-2009, 04:18 PM
Hi Ritu,
using the object spy capture the webelement in ur application , so the webelement have some properties if the webelement have value property set like this,
eg:
WebElement("htmltag:=B","value:=\d")
kindly let me know if u have anyquery
Regards
Bala