I am working on a web application. The problem is , if my winrunner script fails at a point, I would like to close all the open browser windows belonging to the application being tested.
These windows would be dispalying after the winrunner window.So in effect what I would like is to close all browser windows till I reach the Winrunner window.
Appreciate any help on how to go about doing it.
You wil lhave to loop around all open instances of this Web app of yours. There may be few of them so try use the location attribute (where 0 is the lowest one in windows Z-order). This will close them one at a time.