Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Not able to capture the list value in a JavaList
#1
Not Solved
Hi,

I am automating a JavaApplication using QTP 10.00 with Java addin. I can able to work with all the objects uisng QTP. I can able to identify the JavaList also, but here the problem i am facing is i am not able to get any list value which is showing in the application. I can get the list count of JavList object. I tried with the following codes,
var = JavaDialog("Window").JavaList("List").GetRoProperty("items count") its giving me the correct count(i checked all the properties of this Javalist, none of them have any value which is available in this JavaList).
var = JavaDialog("window").JavaList("List").GetItem("#1") or var = JavaDialog("window").JavaList("List").GetItem("1") or var = JavaDialog("window").JavaList("List").GetItem(1)...the above code is giving me some text which is not showing in the application. And even i tried with Set obj = JavaDialog("window").JavaList("List").Object
obj.GetItemAt(1).ToString (we can provide the dynamic values also in the place of 1, the item index which we need to provide for GetItemAt). Please find the attachement for the same. Could you please provide any other methods or suggestions to solve this issue asasp?

.doc   ScreenShot.doc (Size: 28.5 KB / Downloads: 155)

Thanks,
Dileep
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Fire An Event on JavaList Object Raja 0 3,261 06-30-2009, 09:56 PM
Last Post: Raja

Forum Jump:


Users browsing this thread: 1 Guest(s)