Error The browser was not specified for this activity. You should use this activity inside of a Browser scope (Attach Browser or Open Browser activities) or set its Browser property

Hi,

In my project, I have an Open Browser activity that is set to Google Chrome as the browser type, to open a specific website.
In my architecture, I also have an Unattended Robot VM (let say Machine XYZ), and I also set up a domain user to connect to Machine XYZ. The user is let say maccu\piccu. The user maccu\piccu is also configured to be able to be used as a remote user so I could install the required Google Chrome extensions, setting ODBC driver and connection inside maccu\piccu user profile.

The way Orchestrator could connect to the Machine XYZ is: I create an Unattended Robot in Orchestrator and connect to the machine XYZ using user maccu\piccu and provide the password as well.

The problem is, If I did not manually login into the machine via Remote Desktop before running the project using the manual trigger from UIPath Orchestrator, the above error always happened.

But, after I did these steps:

  • Login into machine XYZ with user maccu\piccu using Remote Desktop
  • Close the Remote Desktop without log-out.
  • Re-run the project in the orchestrator with a manual trigger or scheduled trigger.

The error never happened.

Is this expected? Or is there any configuration I missed? I would like the robot to be able to execute the project without somebody login with user maccu\piccu to machine XYZ.

Hello,

Have you installed Assistant inside of the Remote machine and connected to Orchestrator?

Hi @AndyMenon ,
Yes, the Assistant is installed on the robot Machine as well. But, it didn’t start automatically after login into the machine. Does this matter? Assume the machine needed to be restarted after windows update, do I need to login via remote desktop and start uipath assistant process manually again?

But, before opening the browser, there is a sub-process to query data from the database and it doesn’t have an issue. The issue only happened when it trying to open the Google Chrome browser because there are UIAutomation processes (which is foreground process) that needed to be executed, causing the error “Browser was not specified for this activity”. After I tried to login via Remote Desktop and disconnect without logout, the error will no longer happen. Is this the way it works?

A foreground process needs you to be logged in.

You can configure the remote machine to start Assistant on reboot

A foreground process needs you to be logged in.

So I do need log in to the machine first via remote desktop connection?

No, your automation has to be built for background processing. You might want to check this link on how to build your automation so that it can run behind locked screens.

Thanks

Why input method matters with the “the browser was not specified for this activity” error? I am confused

You might want to share some screen shots of the process. If you can’t share the actual one, may be you should build a prototype so that someone here can help troubleshoot.


Hi @AndyMenon, this is the process where the browser activity started. By the way, I haven’t implemented simulate click/type on this screen capture yet.

Kindly let me know where I missed.

That is what you need to make all you activities work behind locked screen.

Most specifically:
Simulate Click
Simulate Type

Remember, the direct form of typing or clicking comes from physical movement of hardware like the keyboard and mouse . This is the traditional method of human-software interface.

When a robot does it, it does not have to use the keyboard and mouse comm channel. The robot is a software and so is your browser. So if you use Simulate Click/Simulate type, the robot communicates with your browser over a background channel. This communication is faster and will not interfere when humans move their mouse and keyboards.

Thanks

Thank you very much @AndyMenon , it does work for me. :slight_smile:

1 Like

Excellent @maccu_piccu ! Thanks for marking the post as a solution. It will definitely boost the reachability of your post to others looking to solve a similar or identical problem.

Cheers! :slight_smile:

@AndyMenon credit goes to you :slight_smile: I am so glad you help me through this.

Cheers!

1 Like

Thanks for the kind words @maccu_piccu . I hope you will in turn help others with your knowledge.

:slight_smile:

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