![]() |
find the property value of a run time object - 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: find the property value of a run time object (/Thread-find-the-property-value-of-a-run-time-object) |
find the property value of a run time object - reejais - 10-28-2010 Hi All, I am creating a runtime object like below. Code: Set ObjOpCoCode = Description.Create() Now I want the value of this hash at runtime. How can I do this. I tried putting this statement Code: OpCoCodeId =browser("").Page("").Link(ObjOpCoCode).GetROProperty("hash") Does anybody have an idea? Thanks in advance for all your help Regards, Reema. RE: find the property value of a run time object - KVK - 10-28-2010 Hi reejais, Spy on the object and check if any value is displayed for hash property for that object. I belive there is no run time value for that property. If you notice that the run time value is not null, than correct your description object, Code: Set ObjOpCoCode = Description.Create() - Vinod RE: find the property value of a run time object - A.Saini - 10-28-2010 Hi Reema, Try this code: Code: ' Creating a child object. It should work..... ![]() RE: find the property value of a run time object - reejais - 10-28-2010 Hi Vinod, There is a value displayed for hash property for that object. eg. if OPCOCodeToEdit = TEST in external file This TEST link has a hash property as "#1002" Since my OPCOCodeToEdit will be changing and the hash value will be different for different OPCO Code. I do not know the value for hash property when I am creating the object. All I know is it will be something like this "#****" Now i want to know the value of this hash at runtime. Can I use GetROProperty with the object that I have created at runtime? Thanks and Regards, Reema. Hi Ankur, Thanks for the help. The code is giving an "general run error" on line Code: strHash = OpCoCodeId(iCnt).GetROProperty("hash") I am trying to find out meanwhile if you have an idea please let me know. Thanks and Regards, Reema. |