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 Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,380)