Micro Focus QTP (UFT) Forums
GetTOProperty - 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: GetTOProperty (/Thread-GetTOProperty)



GetTOProperty - jove1776 - 01-19-2011

Probably a very basic query but can someone tell me why when using objectspy I click on a :
Code:
Dialog("Microsoft Internet Explorer").Static.

the object spy lists all the TO methods I can presumably use?
some of them are the following:
GetTOProperty
GetTOProperties
GetROProperty
and so forth,

I need to get the text property from this Static object

But can't seem to be able to.

tried:
Code:
message = Browser("Browser").Dialog("Microsoft Internet Explorer").Static("staticmessage").GetTOProperty("text")

doesn't want to give me the text - checking with objectspy the propert is text and click on it I see the text i want, but setting a watch on the variable doesnt show the desired text.


RE: GetTOProperty - knvvrao99 - 01-19-2011

Use GetROProperty instead GetTOProperty



RE: GetTOProperty - jove1776 - 01-19-2011

Tried tha already, get a run time error.