For web adapters, the combobox is called a Select. Normally, you would choose SelectItemByText to find and select an item in the list. Sometimes, though this takes a very long time due to the Select having a large number of items. A client I was working with recently had over 9000 items in the list and selecting by text was taking a long time. To speed up the process we took another approach that worked well. This involved using a script to parse the list from the InnerHtml and return the index of the item we were looking for. Then we could do a SelectItemByIndex which is very fast. Here is the automation and the script - you may need to modify the script for your needs but this should get you started.
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Thanks Jeff for reply, In my automation I need to select two items (Ctrl + Select two items mouse right click from list) and then click on search button, but using selectitembytext I am able to select only one. please help.
You will need to determine how the selections are registered with the page. If that is accomplished by setting each option with the "selected" attribute you could modify the innerhtml. That may be different for each implementation, however.
Remember, this tip is for selecting items from a long list. For a short list, SelectItemByText will work fine.
Hi Jeff, I have a scenario where I have to select multiple options from the select control, manually it is done by holding the ctrl key, but through studio I didn't find any solution. Could you please help me out.