Robotic Process Automation

How to handle selector instability in web-based RPA bots during UI updates?

J Asked by James Miller · 15-06-2023
0 upvotes 12,490 views 0 comments
The question

My UiPath bots are constantly breaking because our internal CRM changes its web selectors every two weeks. I am spending more time on maintenance than new development. How are you all building more resilient bots? Are you using Anchor Base activities or moving toward Image Recognition to handle these frequent UI shifts?

3 answers

0
JE
Answered on 20-06-2023

We moved away from strict selectors last year and started leveraging "AI Computer Vision" for our most unstable applications. While it takes a bit more processing power, it is far more reliable than relying on fluctuating CSS classes or dynamic IDs. Another trick we use is creating a "Centralized Object Repository." This allows us to update a selector in one place and have it reflect across all our processes instantly. It hasn't completely eliminated maintenance, but it has cut our rework time by nearly 40%. I highly recommend looking into "Fuzzy Selectors" as well, as they allow for a certain degree of variance in the attributes before the bot throws an exception.

0
MI
Answered on 25-06-2023

Are you find that the AI Computer Vision significantly increases the execution time of your unattended bots compared to the standard selector approach? 

RO 28-06-2023

To answer your question, Michael, there is a slight latency hit, usually around 200-300ms per interaction. However, when you compare that to the hours spent manually fixing a broken bot and restarting a failed production run, the trade-off is absolutely worth it. We only use it for the "problematic" elements, not the entire workflow. This hybrid approach keeps our execution speed high while ensuring the bot doesn't crash the moment a developer changes a button's color or position.

0
S
Answered on 02-07-2023

We started using "Wildcards" in our selectors to ignore the dynamic parts of the ID. It’s a simpler fix than AI but works for about 70% of our web-based issues.

JA 05-07-2023

I agree with Sarah. Wildcards are a great first step. We also combined them with "Attribute Filtering" to ensure the bot is looking for the right tag name instead of just a random ID.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session