Executing UiAutomation on a remote machine

Hello,

I’m facing a problem with executing an automation on a remote machine that includes user interface automation (many activites such as type into, click, send hot key, attach window…)
So my robot launch an application on the machine and it needs to enter credentials. An exception occured which is “cannot find window” so i increased the timeout of the attach window activity (because the application took time to open) once i did that a new exception occured which is “unable to bring the target application to foreground”.

I’m using UiPath community edition and the input method property for my activities is set to Hardware events.

My question is what are the requirements to execute a robot that includes UiAutomation activities in unattended mode on a remote machine ?

Is the problem related to a selector ?

Is changing the input method property to Simulate or SendWindowMessage will solve the problem?

Best regards.

Hi @ahmed.alakhal-benltaifa

Either use simulate

or if you want to use hardware events then on orchestrator in robot settings switch on the ‘Login to console’ option

and also try using activate after you attach to get the application to foreground

cheers

Activate activity doesn’t solve the issue.

@Ahmed_Alakhal_ben_ltaifa

Did you try with Robot settings or by changing to simulate?

Is the chrome extension installed on it?

And please check start up services on it if any start up service is blocking the UI interaction

cheers

I just changed the input method to simulate.

I have UiPath web automation 22.10 installed in chrome.

Where Can i change the robot settings ?

What are the names of these service.

Studio is installed in user mode.

Thanks.

Hi @Ahmed_Alakhal_ben_ltaifa

The Robot should be installed in service mode for unattended

That should solve your issue

For Robot Settings

Orchestrator → Robots → Edit → Advanced settings → Log into console

For more info

cheers

I want to mention that the robot is launched with an execution script : "UiRobot.exe execute --file “package file generated from studio to local repository”

Is it considered unattended mode?

How to install studio in service mode or Can i Switch from user to service with community édition?

Thanks for your help.

@Ahmed_Alakhal_ben_ltaifa

So basically you kept the screen open and ran the bot and it is failing?

If vm is open it should not fail unless you minimize the screen

Cheers

The VM is open.
Why it can’t work when the window is minimized
How unattended automations work on a VM?

Hi @Ahmed_Alakhal_ben_ltaifa

Unattended runs on service mode … and at that time also you don’t login …bot logs in and does the work

Attended on the other hand runs when screen is open by you and kept open

So you don’t minimize them

cheers

cheers

Check out below

Unattended robots Can only be launched from orchestrator ?

The script that i m using won’t work in unattended mode ?

Thanks

What if non user is logged into the VM?

Hi @Ahmed_Alakhal_ben_ltaifa

Yes unattended is only launched through orchestrator.

Unattended means the system is available and user is not logged in yet. Then bot logs in and does the task and comes out…

What you are doing is starting a bot using command prompt and it is not unattended

Hope this clears

cheers

So what i’m doing is like launching the bot in attended mode this mean that all ui activities won’t work unless the vm screen is open.

Without orchestrator my bot won’t work correctly even if i install UiPath in service mode ?

Thank you for your response.

Hi @Ahmed_Alakhal_ben_ltaifa

You can give it a try in service mode as well…But to say unattended run it should run from orchestrator on the machine

You can look at this guide for running automation while minimized

And even this has a limitation just so that you know

cheers

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