Micro Focus QTP (UFT) Forums

Full Version: Facing Issue with "GetItem" method of JavaList
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

We are facing the problem in getting the Item from JavaList using "GetItem" method. However QTP is able to identify the JavaList object and performing the "Select" Operation Successfully.


Code Snippet :
Code:
strVal=JavaWindow("").JavaList("e").GetItem("#1")
Error message: Operation can’t be performed.

Code Snippet :
Code:
Set objJavalist =JavaWindow("Clearance Desktop - Nasir").JavaList("Telephone").object
intCount=objJavalist.getItemCount()
msgbox  intCount
For i=1 to intCount-1
msgbox objJavalist.getItemAt(i).toString
Next
Error message: Object doesn’t support this property or method objJavalist.getItemCount()

Object properties : "toolkit class:=org\.eclipse\.swt\.custom\.CCombo"

Thanks,
Nasir