Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to capture object values
#1
Solved: 10 Years, 9 Months ago
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.
Reply
#2
Solved: 10 Years, 9 Months ago
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...
Reply
#3
Solved: 10 Years, 9 Months ago
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.
Reply
#4
Solved: 10 Years, 9 Months ago
Hi,
Try this..

Code:
val = Window("").Winedit(" ").GetRoProperty("text")
Reply
#5
Solved: 10 Years, 9 Months ago
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Wink IE11 Crashes when User tires to capture an Object or Record a Screen in UFT 12.01 Baalaaji 1 2,750 06-11-2015, 06:41 PM
Last Post: venkatesh9032
  how to save values in object repository krupa 1 2,739 11-08-2011, 07:46 AM
Last Post: ravi.gajul
  How to capture/parameterize ID's created on the server side that QTP does not capture rdwaram 1 2,758 10-17-2009, 02:37 AM
Last Post: jsknight1969
  how to validate combobox values with testdata values 1981.madhu@gmail.com 3 5,544 09-09-2009, 06:53 PM
Last Post: Saket
  Checking if values of Listbox/Combo box on a web page the same with values in DB? robocom 4 7,988 07-08-2009, 01:52 PM
Last Post: robocom

Forum Jump:


Users browsing this thread: 1 Guest(s)