Micro Focus QTP (UFT) Forums

Full Version: Operation happening while selecting "GetItem"
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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
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.