Identifying Dynamic Objects in QTP - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others) +--- Thread: Identifying Dynamic Objects in QTP (/Thread-Identifying-Dynamic-Objects-in-QTP) |
Identifying Dynamic Objects in QTP - ritugoyal - 07-21-2009 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 RE: Identifying Dynamic Objects in QTP - supputuri - 07-21-2009 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. RE: Identifying Dynamic Objects in QTP - ritugoyal - 07-21-2009 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 RE: Identifying Dynamic Objects in QTP - balakrish - 07-21-2009 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 RE: Identifying Dynamic Objects in QTP - ritugoyal - 07-21-2009 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 RE: Identifying Dynamic Objects in QTP - balakrish - 07-21-2009 Hi Ritu, Eg:- Windows("value:=\d").click like this script use in your application kindly let me know if u have anyquery Regards Bala RE: Identifying Dynamic Objects in QTP - ritugoyal - 07-21-2009 Hi Bala, I used it this way but its not working Code: WebElement("htmltag:=B","innertext:=My Certifications (^\d$)") Please look into this RE: Identifying Dynamic Objects in QTP - balakrish - 07-21-2009 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 |