Forum Discussion
This is occuring for me when trying to access wItem and "Point and fix" doesn't detect the table entries just the whole element. I had to enable textbox detection.
Well, I don't have a 100% clear picture of what you're trying to accomplish. For instance, you haven't provided a screen capture of you list box. Additionally, is it correct to assume you are trying to click on one of the list items, or are you trying to identify the text of one of them by its position/index in the list?
I think you may be able to accomplish either of those tasks using the "Items" property for the list box object. I've had success with that under similar circumstances. It's at least worth a try.
Here is an example in VBScript using "Items" and the "Description" property to find the desired list item and click it:
'-- Find the desired item, "Bob", by looping through all the items. Once found click on it
Set o_list = <your list object here>
i = -1
For i_item = 0 to o_list.wItemCount - 1
If o_list.Items.Item(i_item).Description = "Bob" Then
i = i_item
o_list.WPFObject("ListBoxItem", "", i+1).Click
Exit For
End If
NextYou'll have to investigate if the "Items" and "Description" properties are available and will work for you.
Good luck, John