web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Failed to assume contr...
Power Automate
Unanswered

Failed to assume control of Microsoft Edge (Communication with browser failed. Try reloading extension).

(0) ShareShare
ReportReport
Posted on by 31

I've created a desktop flow that worked fine for a few weeks, but now it only works the first time after I reboot my computer. After that, it always hangs at "Launch new Microsoft Edge" with the error:

Failed to assume control of Microsoft Edge (Communication with browser failed. Try reloading extension).

Microsoft.Flow.RPA.Desktop.Modules.SDK.ActionException: Failed to assume control of Microsoft Edge (Communication with browser failed. Try reloading extension). ---> Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.Browser.WebBrowserException: Exception of type 'Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.Browser.WebBrowserException' was thrown.
at Microsoft.Flow.RPA.Desktop.UIAutomation.WebAutomation.Core.WebExtensionsBrowser.WebExtensionsBrowserLauncher.LaunchNew(ProcessWindowStyle processWindowStyle, String initialUrl, Int32 timeout, WebPageCourseOfActionIfDialogAppearsEnum dialogHandlingMode, String dialogButtonName)
at Microsoft.Flow.RPA.Desktop.UIAutomation.Plugin.Edge.Edge.StartNew(ProcessWindowStyle processWindowStyle, String initialUrl, Int32 timeout, WebPageCourseOfActionIfDialogAppearsEnum dialogHandlingMode, String dialogButtonName)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.WebAutomationActions.LaunchNewEdge(Variant initialUrl, Variant edgeTabTitle, Variant edgeTabUrl, Variant dialogButtonToPress, Variant& webBrowserInstance, Int32 operation, Int32 windowState, Int32 attachMode, Boolean waitForWebPageToLoad, Int32 courseOfActionIfDialogAppears, Boolean clearCache, Boolean clearCookies, Int32 timeout)
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.LaunchEdgeBase.Execute(ActionContext context)
--- End of inner exception stack trace ---
at Microsoft.Flow.RPA.Desktop.Modules.WebAutomation.Actions.LaunchEdgeBase.Execute(ActionContext context)
at Microsoft.Flow.RPA.Desktop.Robin.Engine.Execution.ActionRunner.Run(IActionStatement statement, Dictionary`2 inputArguments, Dictionary`2 outputArguments)

If I reboot the computer, it will work again (once). Then it will stop working and always throw the error above. I've tried the following:

  1. Uninstall and reinstall Power Automate Desktop
  2. Uninstall and reinstall Power Automate Edge Extension
  3. Clear cache and cookies in browser
  4. Tried with Clear Cache option both ON and OFF
  5. Tried with Clear Cookies option both ON and OFF
  6. Tried with Wait for Page to Load option both ON and OFF
  7. Tried On Error -> Continue flow run but then I just get an error in the next step "Argument 'BrowserInstance' must be 'Web browser instance'."

Any ideas on how I can fix this? I can't reboot my computer every time I want to run a flow.

I have the same question (0)
  • Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    What version of Windows and version of Edge are you using?  Have you applied updates recently?  Have you updated Power Automate Desktop to the latest version?

  • Jimbotron3000 Profile Picture
    31 on at

    I just recently installed the latest version of Power Automate. It didn't change the situation at all.

    PAD: 2.18.146.22083

    Win 10: Version 10.0.19043 Build 19043

    Edge: 100.0.1185.29 (Official build) (64-bit)

     

    By the way, the same flow works fine when I use Firefox instead of Edge.

  • Gematria Profile Picture
    222 on at

    Have you tried running PAD as Admin?

  • Jimbotron3000 Profile Picture
    31 on at

    Hi @Gematria , thanks for the suggestion. But yes, I did try running as admin and it didn't help.

  • Daniel23 Profile Picture
    44 on at

    Hi,

    I have experienced the same error, but with Chrome browser and on Windows server with unattended mode.

    The pattern for the issue was when chrome wasn't closed correctly - like if you use below to ensure that Chrome browser is closed before starting a robot: 

    Daniel23_0-1649352707176.png

    In Chrome browser you can check if it hasn't been closed correctly because it will show below message when you open it:

    Daniel23_1-1649352871697.png

    Whenever that happens, I get the error you describe. For me, a reboot doesnt work though. Instead, I have to manually open and then close the browser correctly. After that, PAD can work with the browser again.

     

    Don't know if your issue is the same, but you can try it out.

  • Gematria Profile Picture
    222 on at

    Not related to this post, but you can fix this problem in Chrome by:

     

    1. Going to %Userprofile%\AppData\Local\Google\Chrome\User Data\Default
    2. Open the file "Preference" in Notebook
    3. Find the record: "exit_type": and set it to "none" (its probably set to "crashed")
    4. Save the file
    5. Right click the file and select properties
    6. Set the Read Only flag on the file

    Removes the popup completely, no matter how many times you either kill Chrome or Chrome just crashes.

  • paddelia Profile Picture
    on at

    I have the problem at random, then it usually works again when I restart the flow.
    I believe it happens more frequently with flows running sub-flows.

  • Ezhilvannan_V Profile Picture
    178 on at

    Hi @Jimbotron3000 

    Please ensure Chrome is closed during each iteration, if restore popup occurs which means chrome not closed properly, so please refer below attached image, if it works please accept as solution.exception.PNG

  • Ezhilvannan_V Profile Picture
    178 on at

    @Jimbotron3000 Disable this option in chrome setting1.PNG

  • Jimbotron3000 Profile Picture
    31 on at

    Sorry, I accidentally marked this as the solution when trying to click "reply". This actually didn't solve my problem, as you suspected. My browser doesn't seem to be closing incorrectly. I don't see the message you screenshotted.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard