Power Automate Desktop is a robotic process automation (RPA) solution from Microsoft that allows users to automate tasks that integrate with legacy applications that have no API capabilities, as well as to speed up manual processes originally handled by end users. It’s an intuitive technology that can be run in attended and unattended modes, and one I’ll be writing more future posts on soon (i.e. best practices for capturing actions and UI elements as well as reviewing supplemental resources on advanced CSS selectors).
One thing Power Automate Desktop users may notice, however, when automating tasks with one of the “Launch new” browser actions, is that after they run the Flow, it appears to hang upon launching the browser and navigating to the respective URL. This is something I have personally encountered and so I wanted to share what is happening and how to avoid it.
Steps to Reproduce
- Launch your default profile in Google Chrome
- Launch a secondary profile in Google Chrome
- Ensure the secondary profile / instance of Google Chrome is the one you’ve most recently utilized (i.e. use it to navigate to a webpage)
- Go into Power Automate Desktop and Run a Flow where you are utilizing a “Launch new Chrome” action
- Observe how a new instance of Chrome is opened, and the respective web page is loaded, but the Flow appears stuck on this first step, never proceeds to the next step, and never reports an error
The Reason for the Behavior
What’s the culprit? The issue is the use of multiple profiles in Google Chrome, and having multiple profiles opened at the same time. In essence, Power Automate Desktop is launching another instance of Google Chrome within the secondary profile, but the rest of your Flow is expecting to interact with the Default profile. This results in the disconnect after the initial browser launch, as the browser that is launched is not the one that Power Automate Desktop was expecting to attach to.
How to Solve Power Automate Desktop Getting Stuck after Launching a new BrowserThere are a couple quick options to resolve this issue:
- Avoid utilizing multiple browser profiles while testing in Power Automate Desktop
- Launch a different type of browser within Power Automate Desktop than the one you are currently utilizing on your workstation (i.e. I utilize Google Chrome normally for browsing so I use ‘Launch new Microsoft Edge’ in Power Automate Desktop when testing)
I hope this has been helpful, and looking forward to posting more tips and tricks around Power Automate Desktop (RPA).Cheers,