Micro Focus QTP (UFT) Forums
Save label webelement value - 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 Others (https://www.learnqtp.com/forums/Forum-UFT-QTP-Others)
+--- Thread: Save label webelement value (/Thread-Save-label-webelement-value)



Save label webelement value - shag - 04-26-2011

hi, am new on this, here's the issue,

there's a label that indicates the date and time, so i want to save this value on variable, but i dont know how, in QTP, the object repositoty shows the control as webelement, can anyone help me please.




RE: Save label webelement value - supputuri - 04-27-2011

Hi,

You can get "innertext" of the webelement.

Code:
MyAppDate = Browser("AUTBrowser").Page("AUTPage").Webelement("Testingwebelement").GetROProperty ("innertext")
Msgbox MyAppDate

Please let me know if you need any more information.