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 / Browser Automation Error
Power Automate
Unanswered

Browser Automation Error

(0) ShareShare
ReportReport
Posted on by 23

Recently an update was applied in PAD and since when I use Launch New Microsoft Edge, I get an error: Failed to assume control of Microsoft Edge (Internal error or communication failure). I am using the most recent version of PAD. Any ideas as to how to resolve the issue?

Thank You

I have the same question (0)
  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Hi @CooneyRTX !

     

    That error message suggests that there is an issue with the communication between the browser automation tool you're using and the Microsoft Edge browser.

     

    So instead, try using the 'On error' -> 'Continue flow run' -> Exception handling mode as 'Repeat action' to keep running the action until success.

    NathanAlvares24_1-1698677566203.png

     

    If the error still persists, check the Browser Settings as they may need to be adjusted to allow automation. For instance, check for browser extensions or settings that might be causing conflicts.

     

    Or a simple restart will do.

    ----------------------------------------------------------------------------------------------------------------------------------------

    If this helps & solves your problem, please remember to give a "Thumbs up" and accept my solution as it will help others in the future.

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

    Another method is this:

     

    Try launching Edge via the Run application action and then using Launch new Microsoft Edge to attach to it. The flow should look somewhat like this:

    NathanAlvares24_0-1698698476307.png

     

     

    Note: I initially run Edge with the Google page to make it load faster and also make it easier to attach to the instance. This is a standard functionality I always use in every single flow.

    Also note: You will need to replace the value of the %URL% variable in the Set variable action to whatever you want to navigate to.

     

    Here's a snippet that you can copy and paste directly into your PAD flow designer to create all those actions:

    SET URL TO $'''www.someURL.com'''
    System.RunApplication.RunApplication ApplicationPath: $'''msedge''' CommandLineArguments: $'''www.google.com''' WorkingDirectory: $'''%''%''' WindowStyle: System.ProcessWindowStyle.Maximized ProcessId=> AppProcessId
    WAIT (UIAutomation.WaitForWindow.ToOpenByTitleClass Title: $'''Google*Microsoft​ Edge''' Class: $'''Chrome_WidgetWin_1''' FocusWindow: True) FOR 30
    WebAutomation.LaunchEdge.AttachToEdgeByTitle TabTitle: $'''Google''' AttachTimeout: 5 BrowserInstance=> BrowserMain
     ON ERROR REPEAT 5 TIMES WAIT 3
     END
    WebAutomation.GoToWebPage.GoToWebPageCloseDialog BrowserInstance: BrowserMain Url: URL

     

    Source of the above information: https://powerusers.microsoft.com/t5/Power-Automate-Desktop/Microsoft-Edge-Browser-Error-when-launching-pages-in-new/m-p/2419291#M32895 

     

    Regards,

    Nathan Alvares

  • dashort Profile Picture
    62 on at

    I have encountered the same issue with the same timing.  It has affected all three browsers and the error message is the same.  I have used the PAD flows for years...

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    I suggest trying to use the Run application method and then attaching to the browser afterwards. @NathanAlvares24 has posted a copy of that method above.

     

    If that doesn't help, you may need to report this as a bug to MS support.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • CooneyRTX Profile Picture
    23 on at

    NathanAlvares24,

    Thanks for the suggestion. I tried this and the flow just sat in what appeared to be an infinite loop.

     

  • CooneyRTX Profile Picture
    23 on at

    dashort,    I am in the same boat. I hope they do an update soon or I will have to look for other solutions. It was working fine prior to the last update.  Good luck!

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Have you tried the other approach with Run application?

  • CooneyRTX Profile Picture
    23 on at

    The action wait for window times out on me. 

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Can you share a screenshot of your flow?

  • CooneyRTX Profile Picture
    23 on at

    Agnius.....the issue is still present. It occurs if I open any web page. The screenshot below shows just opening google generates an error. I did see another user on another board indicate that they reported this to MS and they are working on the issue with no ETR.

     

    CooneyRTX_0-1699199950822.png

     

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 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard