Hello community,
Hope you all are safe in this pandemic.
In my scenario, I want to close edge browser once my process is completed.
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.
Solved! Go to Solution.
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.
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.
Have you tried using the UI Automation -> Click UI element in window for this instead?
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.