Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Operation happening while selecting "GetItem"
#1
Solved: 11 Years, 4 Months ago
Hi all,

Plz help

What are difference between "GetItem","GetROProperty" and "GetTOProperty" and if i need to know the value in the Combo Box what operation i will set.
Reply
#2
Solved: 11 Years, 4 Months ago
All these methods are well explained in QTP help
getitem - Returns the item at the specified location.
GetROProperty -Returns the current value of the specified identification property from the object in the application
GetTOProperty - Returns the collection of properties and values used to identify the object

use GetROProperty to know the value in the Combo Box

Reply
#3
Solved: 11 Years, 4 Months ago
1. GetItem Returns the Value from Combo Box using Index
2. "GetROProperty" Returns the value of Runtime object property which is maintained by your browser, so you can not change the value of any of the Property. That's why there is no SetROproperty Method.
3. "GetTOProperty" returns the value of your Test Object that is stored in OR. Its created and maitained by QTP so you can change its Property value at runtime using SetTOProperty.

In your case
Code:
msgbox Browser(..).Page(..).WebList(..).GetROProperty("value")
should work.

Hope this helps.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QTP not selecting appropriate webelement from the webtable..Need Solution satishkumarm 11 21,640 03-23-2016, 12:47 PM
Last Post: Swetha_Bayya
  The DataTable.ExportSheet operation failed. Invalid file. Niraj 2 6,288 05-05-2015, 11:40 PM
Last Post: babu123
  Excel operation - to find usedrange of rows & col pooja 1 9,714 02-19-2015, 04:06 AM
Last Post: supputuri
  Selecting values from drop down using QTP. prempujaripati 2 46,768 06-26-2014, 06:06 PM
Last Post: rasmirani
  Selecting file saved in a location excellentpawan 1 4,067 02-25-2014, 02:05 PM
Last Post: guin.anirban

Forum Jump:


Users browsing this thread: 1 Guest(s)