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:
- Uninstall and reinstall Power Automate Desktop
- Uninstall and reinstall Power Automate Edge Extension
- Clear cache and cookies in browser
- Tried with Clear Cache option both ON and OFF
- Tried with Clear Cookies option both ON and OFF
- Tried with Wait for Page to Load option both ON and OFF
- 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.