Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Facing Issue with "GetItem" method of JavaList
#1
Not Solved
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
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Facing issue with Java Table to press Enter Key from Keyboard Nasir Ahmed 0 4,528 05-23-2014, 08:05 PM
Last Post: Nasir Ahmed
  Issue with "Set" method linhke 1 2,144 02-05-2010, 12:05 PM
Last Post: Saket
  Facing while using web page with tabs pkjakhar 1 2,128 06-25-2008, 05:56 PM
Last Post: vamshiram

Forum Jump:


Users browsing this thread: 1 Guest(s)