Activate Chrome/Bring to Foreground - Not working whilst running an unattended access system

Hi,

We have installed an unattended access system (Zoho Assist) so we can monitor our VM which is running automations. This is running in the foreground whether someone is actually watching or not it seems.

Our bots are constantly giving this error:
RPA Error Type: Cannot bring the target application in the foreground. The action was blocked by the current foreground window ‘Zoho Assist’ from the process ‘.’

If someone is logged into the machine and clicks the mouse on chrome it brings it to the foreground and it works fine. We tried to send a phyiscal left click from the bot but this doesn’t seem to be working anyway.

Any ideas?

@etherjez

You can minimize or restric zoho assist from registry or backend properties …if there is any pop up or anything in foreground ideally it would restrict

Cheers

Hi @etherjez

Adjust UiPath Activities

  • Use activities like Attach Window or Activate to bring the target application into focus before performing any actions on it.

Hi Anil,
Thank you, do you know what registry settings that would be? I don’t see anything jumping out at me that would sort that.

Unfortunately Attach/Activate doesn’t work. It trys and you can see chrome attempting (flashes yellow) to bring to the front, but then it throws the error that Zoho is blocking that action.

Hi @etherjez

Did you try using Maximize Window activity.

Regards

Hi, we tried Maximize, Activate, Attach Browser, Send Physical click to Browser (to bring to foreground). Seems Zoho just brings itself back to the front again until someone on Zoho clicks the screen then its fine for that automation.

The error is pretty clear - the Zoho Assist window is already set to stay on top, so you can’t force something else to be on top.

Seems Zoho just brings itself back to the front again until someone on Zoho clicks the screen

So have your automation do that, with the input mode set to Hardware Events.

@etherjez

Did you try with simulate or chromium api?

That does not need chrome to be on the foreground…if the site supports yhen it should not be a problem

Cheers

We changed click, type and hotkeys from hardware events to sendwindowsmessage and that seems to have worked in most places. Thanks for all the suggestions

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.