I have a script which doesn't close browsers if the test fails. The reason identified was because of an open dialog box. This dialog box triggers a download action.
When I re-run the test, I would like to start fresh with all browsers closed and no open dialog boxes.
Any suggestion on the best way to ensure that all browsers get closed.
Tried:
1. finding the dialog box again when the script is re-run and close it. --- doesn't work
2. tried sending the ALT+F4 keys. it still just closes the dialog box and triggers the download and doesn't close the browser. -- doesn't work
browser IE11
silk4j