I was wondering if there was a way to have the script close all windows (similar to what happens at the end of any script) if an exception occurs. I have a bot that is going into a web page to generate reports for a list of store numbers. If one of the reports doesn’t generate, the exception handling catches it but it doesn’t continue generating the reports from the next store number in the list because it cannot log into the webpage if it’s already logged in from the previous steps.
Any help is greatly appreciated.
Here is a simple idea of how I set up the script.