Micro Focus QTP (UFT) Forums
How to capture object values - 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: How to capture object values (/Thread-How-to-capture-object-values)



How to capture object values - Ashley - 07-10-2008

I am new to QTP, I am not able to capture the object values. i.e. in an application there are values in the text boxes, i want to get those values. Can anyone help me with this.


RE: How to capture object values - QADBA - 07-10-2008

I'm not quit sure, because i'm also new in QTP, but maybe you're looking for something like Text Output Value (Insert>Output Value> Text Output Value)?
Please also check QTP help for Text Output Value.
I hope this helps...


RE: How to capture object values - Ashley - 07-10-2008

I appriciate you response. I tried using Text output value, it is taking it as edit but not able to get the value which is there in that edit box. Below is the code when i am getting:

Code:
Window("Team Approach").Window("Account Overview").WinEdit("Edit").Output CheckPoint("Edit")

Can anyone give any more advice on this.


RE: How to capture object values - somisays - 07-11-2008

Hi,
Try this..

Code:
val = Window("").Winedit(" ").GetRoProperty("text")



RE: How to capture object values - anemuday - 07-18-2008

Hi,

To retrieve the value in text box or any other object, it need not be a "text" property. It can be "value"/"innerText" or any other properties. So i suggest you to use Object Spy and checkout which property fulfills you need and use that property.

Thanks & Regards,
Uday.