I wrote the following test in IeUnit, that is suppose to close the alert window, check it out and let me know if you think there is anything wrong:

function SkipAlert() {
assimilate(this, new IeUnit());
var obj = this;

this.setUp = function() {



this.testGoogleHttps = function() {
var orgWin = this.win; // save the current window.
this.seekAndSetWindow("Security Alert", true);
this.closeWindow(); // close the Alert window.
this.win = orgWin; // return to previous window.