Posts: 18
Threads: 8
Joined: Dec 2009
Reputation:
0
12-31-2010, 07:10 PM
Hi,
My application is in Swing. In that contains Java Table. In one column -for each cell of that column - List box is provided to select the value.
In QTP9.5 , how to verify the values in the list box?
Thanks in advance.
Dinesh
Posts: 189
Threads: 0
Joined: Jul 2009
Reputation:
1
01-03-2011, 09:55 AM
Hi,
You can get the values of a list box by using GetROProperty("all items"). All the values will be seperated by ";". Split the string and then search for the desired value in the array.
Posts: 1,003
Threads: 1
Joined: Jul 2009
Reputation:
5
01-04-2011, 01:50 PM
If the list box is within a table then you will have to use the childobject method to select the particular list box and then use the getroproperty(allitems) to obtain the items.
Better to look at the code.Eh ?
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Posts: 7
Threads: 5
Joined: Apr 2011
Reputation:
0
05-13-2011, 12:48 AM
Can this also be done with a JavaList? I have a JavaList, and I need to search the list for a specific entry.. Get the items, load to array, search array?