jeffbadger Member since 2016 9 posts
Posted: 3 years ago
Last activity: 1 year 11 months ago

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
Share this page LinkedIn