I’m automating filling out a web form that has dynamic Select menus. One of these only populates when valid data is found. If no item is found the form doesn’t give a validation error, it just shows a blank selector.
I thought I could ignore that and just catch the validation error that shows up when the submit button is clicked. However, Studio never gets that far. Instead, it times out on not being able to select an item and throws “Cannot select item. It was not found among existing items.”
Ideally, I’d like the bot to realize there are zero items in the selector, log the error, and continue onto the next item in the workflow. I guess I’m looking for something like an “if selector is blank then…” construct, but I’m unclear on how to do that.
Seeing the full error makes me wonder if there is some “list length” kind of equivalent I could use? Hopefully someone out here in the community can give me a nudge in the right direction.
Select Item ‘SELECT list1’: Cannot select item. It was not found among existing items.
TIP: Some combo-boxes delay load items until its dropdown is expanded. Try to simulate a click on control prior to selecting an item.