| || |
closing child windows when error occured
what are the steps to follow when running the driver scripts, if one test fails it shout continue with the next step in the driver script. In my application we are starting every test from the main page, so when we got an error in TP when we are working on child window.. that time all links to go to the main page are disabled.. so I couldn't go to the main page till the child window being closed.. and coulnd't start the next test.. How to close the other windows that are open when error occured.
Note:Window.Close is not working. please suggest me something else.
Re: closing child windows when error occured
You really have two choices:
1. Write a routine in your error handler to go through and close all windows
2. Find a third party app that you can invoke to close all open windows.
I have used option 2 sucessfully.