Micro Focus QTP (UFT) Forums
Operation happening while selecting "GetItem" - 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: Operation happening while selecting "GetItem" (/Thread-Operation-happening-while-selecting-GetItem)



Operation happening while selecting "GetItem" - Angel - 01-04-2011

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.



RE: Operation happening while selecting "GetItem" - Saket - 01-04-2011

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


RE: Operation happening while selecting "GetItem" - rajeshwar - 01-04-2011

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.