Micro Focus QTP (UFT) Forums
How to retrieve the Property values of an 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: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: How to retrieve the Property values of an object (/Thread-How-to-retrieve-the-Property-values-of-an-object)



How to retrieve the Property values of an object - Arena - 04-06-2012

I am creating objects using this function.

Code:
For iLoop = 0 to (UBound(arrPV)-1)
                                Prop= Split(arrPV(iLoop),":=")(0)
                                Val= Split(arrPV(iLoop),":=")(1)
                                o(Prop).Value = Val
     Next


How can retrieve the different Properties that the object has?

For example, how can I retrieve the "title" of a "BROWSER"?

Thanks!


RE: How to retrieve the Property values of an object - Ankesh - 04-06-2012

Use GetROProperty Method. Refer to QTP help for more info.

Syantax:

Code:
strPropertyValue=Browser("xx").Page("xx").GetROProperty("<PropertyName>")