Jeff Badger (jeffbadger)
Product Manager, Robotics
Pegasystems Inc.
jeffbadger Member since 2016 15 posts
Posted: May 22, 2017
Last activity: November 6, 2018
Posted: 22 May 2017 10:00 EDT
Last activity: 6 Nov 2018 20:02 EST

Pega Robotics - Select Item By Index trick

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.

Robotic Process Automation Developer Knowledge Share