cancel
Showing results for 
Search instead for 
Did you mean: 

Bot takes time to highlight elements while using UI mode

SumitRaut
Level 2

I am using msedge and UI mode for process. When the process starts the elements getting identified faster but after some time those same elements take much more time to get recognize. 



------------------------------
Sumit Raut
------------------------------
2 REPLIES 2

Hi @Sumit Raut,

In general, UIA mode is slower most of the times and should be used only if no other options are left such as Browser mode or IE mode are not working on top of edge application. If the other two modes are not possible to use, then you can optimize the spying a bit in UIA mode by following the below approaches:

  • Ensure you are using a bare minimum of attributes which can help you to identify the element easily. They should not have any blank values or attributes which can change dynamically such as UIA Width, UIA X, UIA Y etc. When I say bare minimum, it does not have a given number of attributes but should be only relevant ones. Remember more attribute you select you definitely can increase the speed, but it also might cost you the reliability of spying if you do not select them carefully. So always select as much attribute as possible but which always will be able to uniquely identify the element if you want imporved speed.

  • Make sure you are using the Match Index attribute to avoid duplicate elements being found.

  • Please check when you have these spying issues coming, what is your overall memory consumption for the machine. Some background tasks if running at that same time can hamper the speed as well. Your best idea should be to either kill such tasks programmatically or ensure during your run they are not active.

  • Use separate business objects rather than using one business object if you have multiple screens as it will make your application modeler heavy to use and will increase the overall time as well.

  • Ensure you are not using static delays or have configured static wait times as they will also significantly increase time of your overall workflow.


------------------------------
----------------------------------
Hope it helps you out and if my solution resolves your query, then please mark it as the 'Best Answer' so that the others members in the community having similar problem statement can track the answer easily in future

Regards,
Devneet Mohanty
Intelligent Process Automation Consultant | Sr. Consultant - Automation Developer,
WonderBotz India Pvt. Ltd.
Blue Prism Community MVP | Blue Prism 7x Certified Professional
Website: https://devneet.github.io/
Email: devneetmohanty07@gmail.com

----------------------------------
------------------------------
---------------------------------------------------------------------------------------------------------------------------------------
Hope this helps you out and if so, please mark the current thread as the 'Answer', so others can refer to the same for reference in future.
Regards,
Devneet Mohanty,
SS&C Blueprism Community MVP 2024,
Automation Architect,
Wonderbotz India Pvt. Ltd.

Andreas__Molin
Level 3

Hi!

Did you find out what was causing this behavior?
We have the same issue. It works fine for a while, then all of the sudden during a session the time it takes to interact with any UIA spied element, is like 10 times slower. This continues until Automate.exe is killed and started again. Then every thing stays normal for several hours before getting slow again.