10-31-2014, 12:25 PM
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 :Error message: Operation can’t be performed.
Code Snippet :Error message: Object doesn’t support this property or method objJavalist.getItemCount()
Object properties : "toolkit class:=org\.eclipse\.swt\.custom\.CCombo"
Thanks,
Nasir
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")
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
Object properties : "toolkit class:=org\.eclipse\.swt\.custom\.CCombo"
Thanks,
Nasir