@LucasSilvaHi,
I have faced a similar issue while automating one of our applications on Chrome where the automation was sometime working fine in debug mode whereas it was failing while running from Control room as it was not able to identify the element.
In debug mode also it will fail(as cannot identify element) in case we have ran the process multiple times continuously and restart was the only workaround.
Workaround:
We explore the other modes to spy the elements and in UIA mode all the elements were not able to spy.
To activate UIA mode for all the elements to spy we had to add the "
--force-renderrer-accessibility" along with URL while launching the application and then we were able to spy most of the elements to proceed with our automation.
Ex: URL
--force-renderrer-accessibility
------------------------------
Vikash Anand
Application Development Senior Analyst
Accenture
------------------------------