Micro Focus QTP (UFT) Forums
.Object Method 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 Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: .Object Method in QTP (/Thread-Object-Method-in-QTP)



.Object Method in QTP - Shell - 01-25-2011

Hi,

I am new to QTP and want to learn how do we use the .object method in QTP. I have seen many people using the .object method however have not been able to understand how to use it.

Eg: SwfWindow("****".Swfobject("****").Object.

Thanks
Shell


RE: .Object Method in QTP - Saket - 01-25-2011

object method can be used to access runtime object properties and can have propertis like font, color etc..
e.g if you need to retrieve the background color or font name used for your test object then you will have to use object method as you cannot use GetROProperty method here.
you will have to use something like.. <Your Test OBject>.object.currentstyle.backgroundColor
or .Object.Currentstyle.fontfamily

I am sure you can find some example here, try searching this forum.
you may refer https://www.learnqtp.com/forums/Thread-How-to-get-text-properties?highlight=object.style


RE: .Object Method in QTP - Shell - 01-27-2011

Thanks for the reply Saket.
Can you please let me know where do we get the object properties from as in where to find the properties that are supoorted by the .object method.

Thanks
Shell