cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bansari_Pandya
Helper III
Helper III

Close Browser

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.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Bansari_Pandya
Helper III
Helper III

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.

 

View solution in original post

3 REPLIES 3
WorkingForFood
Advocate V
Advocate V

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.

Anonymous
Not applicable

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

 

Fjalar_0-1621292697190.png

 

Bansari_Pandya
Helper III
Helper III

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.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,794)