Forum Discussion
List items in a list box are not seperate items that are mapped. They are in some property within the control itself. Look to see if there is a wItemCount or wItem property. Look, also, for perhaps something like "Items"
Hi,
This listbox doesn't have names, display, text, wItemCount or wItem property. It has only 'Items' property but the value of that is only '(Object)'. There is no way to get the names. Is there any way to get the names from it?
- anupamchampati4 years agoFrequent Contributor
1. Have you tried entering that Items Object and see any property in it?
2. What is happening if you are trying to do record script for the same dropdown?
- shejuti4 years agoOccasional Contributor
1. I tried getting the properties of the 'Items' object and it returns some properties like 'CommaText', 'DelimitedText' which shows a string of the list items separated by comma. There is another property 'Count' which shows the number of list items. But is there any way to click on a specific item? I can only check if an item is in the list, but cant click it.
2. For record script, it just clicks on a specific coordinate like this-
Aliases.names.TdxBarDropDownListBox.Click(48, 58);
- anupamchampati4 years agoFrequent Contributor
Try adding TdxBarDropDownListBox class in the text recognization and see whether Microsoft lib helps you to get the text object.
If the above way dint help try adding the same class in MSAA list as well.
Related Content
- 8 months agoMehwishDaud
- 5 years agom_essaid
- 5 years agokate123