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



javaobject - reddyraam10 - 02-07-2017

Hi, 

I am started working Windows desktop application which is developed in JAVA, there is one object is coming as "Java object" and I am not seeing any unique property value.

no values for label, text, properties, so how to get the value for that object?

x = javawindow("xyz").javaapplet("xyz").javaobject("lighlabel").getroproperty("text")
msgbox x

x is getting no value

please help me


Thanks
Redd


RE: javaobject - reddyraam10 - 02-08-2017

(02-07-2017, 08:24 AM)reddyraam10 Wrote: Hi, 

I am started working Windows desktop application which is developed in JAVA, there is one object is coming as "Java object" and I am not seeing any unique property value.

no values for label, text, properties, so how to get the value for that object?

x = javawindow("xyz").javaapplet("xyz").javaobject("lighlabel").getroproperty("text")
msgbox x

x is getting no value

please help me


Thanks
Redd


Please anyone help me on this...the text is $6.12 in the windows application, so how to got that in to variable???