I’m a bit at a loss to what is going on. Suddenly, some of my long-standing jobs (have been running daily without much issue for a year or more) are faulting on the initial activity involving web browser (chrome) activities. It will be on the first activity involving looking for an element (e.g. Input for username).
I first thought some Windows popup/process was overlapping the browser and causing the interruption.
I have tried quite a few things. Adding at the start activities such as Focus, Activate, kill process for chrome.exe to end any background Chrome stuff that might somehow interfering, throwing them into a Retry Scope, different order of the above activities, etc.
Sometimes the jobs work fine and I think I fixed it, sometimes it fails in the same exact way. It doesn’t matter which activity I have first involving looking for elements in the browser; if it is going to fail, it will fail on whichever is first.
While I have these activities in the Retry Scope, with logs I can see that it is going through this loop to keep trying. If I access via RDC at any point, the job will immediately continue without any issue and complete the job. When I remote in, there are no popups or anything I can visually see to indicate why the browser is not able to be in focus prior to my arrival.
The errors I get depend on which activity is first for it to fail on, but such errors as:
“Message: Cannot bring the target application in the foreground.”
“Message: Could not find the user-interface (UI) element for this action.”
And again, this always works without issue locally and works 50% of the time as unattended via orchestrator. And it used to work 100% of the time. Only in the past week have I began to encounter this issue on multiple jobs.