Robotic Process Automation

How do I handle dynamic UI changes in RPA bots without frequent script failures?

AM Asked by Amanda Collins · 15-02-2023
0 upvotes 14,343 views 0 comments
The question

I’m struggling with my UiPath bots breaking whenever the web application updates its interface. Even minor shifts in button positions or CSS selectors cause "Element Not Found" errors. What are the best practices for creating more resilient selectors or using anchor-based activities to ensure high bot stability in frequently updated environments? 

3 answers

0
KI
Answered on 10-04-2023

To build resilient bots, you should move away from absolute selectors and utilize "Fuzzy Selectors" or "Wildcards" for attributes that change. In UiPath specifically, the 'Anchor Base' activity is a lifesaver; it allows the bot to find a stable element (like a text label) and look for the input field relative to it. Additionally, implementing "Object Repository" features can help you manage UI elements centrally. This way, if a selector changes, you only update it in one place rather than in every single workflow. Always aim for "Visual Tree" navigation rather than pixel-based clicking to ensure the bot remains functional across different screen resolutions and browser versions. 

0
JA
Answered on 12-04-2023

Are you utilizing any Computer Vision (CV) activities for these dynamic pages, or are you strictly relying on standard selectors? Sometimes CV is the only way to handle heavy AJAX or Silverlight apps. 

MA 14-04-2023

Jason, I’ve mostly stuck to standard selectors because I was worried about the resource overhead of Computer Vision. However, the web app we use is quite heavy on Java applets, which is where the main issues arise. Does Computer Vision significantly slow down the execution time, or is the trade-off for reliability generally worth it in an enterprise environment?

0
RO
Answered on 18-04-2024

I highly recommend implementing a "Retry Scope" around your click activities. It’s a simple way to handle temporary loading lags that often look like UI changes but are just latency. 

AM 19-04-2023

I agree with Robert. Combining a Retry Scope with a short delay often solves 80% of the 'Element Not Found' exceptions we see in our production environments.

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