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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Close Browser

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello community,

 

Hope you all are safe in this pandemic.

 

In my scenario, I want to close edge browser once my process is completed. 

 

Bansari_Pandya_0-1621229094884.png

 

In above image, I use 'Close Web Browser' Action. When we closed browser it will ask question and give 2 option: 'Leave' and 'Cancel'. 

 

So when I apply press button in window action. It won't work and flow failed.

 

Have any suggestions for this?

 

Thanks,

Bansari Pandya.

 

I have the same question (0)
  • WorkingForFood Profile Picture
    99 on at

    If you're okay with closing all open instances of Edge, you could use the "Open CMD Session" and  "Write to CDM Session" activities and use taskkill/F /IM MicrosoftEdge.exe to close Edge.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Have you tried using the UI Automation -> Click UI element in window for this instead?

     

    Fjalar_0-1621292697190.png

     

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for the response. @WorkingForFood and @Anonymous 

     

    Issue is when I use 'close browser action', there was an pop up which was appearing on the same window and without click on leave button it was not closing the browser.

     

    That was the cause which was giving error on close browser action in my flow.

     

    So I handled this exception from 'On error' option of close browser in such way that if error occurred on close browser action it should go to the next step and it should click on 'Leave' button from that pop up window after that it is closing the browser without any error.

     

    Best Regards,

    Bansari Pandya.

     

  • SV-05081539-0 Profile Picture
    4 on at

    Hi. The command must be:

    taskkill/F /IM msdge.exe

    Thank you.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 411

#2
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 291

Last 30 days Overall leaderboard