Forum Discussion
Can you show us what this thing looks like on screen?
Again... note that wItemList has a WHOLE bunch of list separators but no actual data in between.... this means that the list is there... but the individual items are not text objects....so.... what are they?
It might be that you need to go with some other methods other than wItemList or wItem. See if there is an "Items" property on your component or something else that has the list of objects.
Hi,
I attached the list image here.
I don't find any properties with the list and or something. One more thing, I could see child count 1 in my properties list but there is no child object for the list in the object browser.
I think the list contains images instead of text.
- tristaanogre8 years agoEsteemed Contributor
That looks more like a grid than a list. So... is it a SwingList of rows? Or is each row a list item? What gives here?
See, the component class you're trying to reference it as is usually a list of items, each one a string of text to be referenced. What you have here looks a LOT more like a table or grid. I'm guessing that each row is an item in the list which means that they aren't necessarily object that you can retrieve in this way.
Is this something that is natively recognized as a SwingList by TestComplete or did you do some modifications of your Object Mapping to map this component to the SwingList? - tcsalex8 years agoOccasional Contributor
I didn't do any modification for this object. The class name identified by Test complete is "ListBean$1" and the name of the object is SwingObject("ListBean$1", "", 0).
There are a header row and few rows with items. There is no list under each row. I need to get the value of one of the row.
If each row an item, how can I get it without any property or something
- tristaanogre8 years agoEsteemed Contributor
So, in other words, it's not a standard SwingList... It's a list of records within something called a ListBean. That's your problem right there... the items in your list aren't OLE compatible objects, they are data records of some sort. Not entirely certain how to go about getting individual information from individual rows.
There should be a NativeJavaObject property on your object. If you open that up, what's available there? Also, can you post screenshot of all the properties of your component as displayed in the Object Browser? It's possible to probably do what you're asking but you might not be able to do so with wItem or wItemList.