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 @Fjalar 

 

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 IV
Advocate IV

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.

Fjalar
Advocate I
Advocate I

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 @Fjalar 

 

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,285)