My Robot throwing an error yesterday on a activity “attached window” which stop the process.
one day before no error occurred and the process has not been changed.
When i validate the selector it is good, and the highlight is correct. But why did I get this error on this activity.:
message: UiPath.Core.SelectorNotFoundException: Cannot find the UI element corresponding to this selector: —> System.Runtime.InteropServices.COMException: Cannot find the UI element
@GBK No bot is not sharing any common folder/file/resource.
Firstly i am running Bots one after close previous running bot. At a time i am running single bot.
i have checked permission.
When unattended bot run and screen is visible then bot run successfully. But in case of screen is not visible then unattended bot run fails and throw error of selector.
Hi @pankajs3,
selector not found exception can occur due to many scenarios like application might be slow to respond(timeout), application may have some configuration error.
As you are saying the same code works on other VM’s, can you enclose that workflow in TRY block and take exception screenshots to check if the window exists? REFramework does that for us, recommend to check and do the troubleshoot.