IE7 crashed when RemoveDialogHandler is called
- by Baptiste Pernet
I have this code:
FileDownloadHandler handler = new FileDownloadHandler(fileName);
Browser.AddDialogHandler(handler);
//using (new UseDialogOnce(Browser.DialogWatcher, handler))
//{
Browser.Button(Find.ById("ButtonExportReport")).ClickNoWait();
handler.WaitUntilFileDownloadDialogIsHandled(20);
handler.WaitUntilDownloadCompleted(30);
//}
Browser.RemoveDialogHandler(handler);
And when I call Browser.RemoveDialogHandler, Internet Explorer 7 crashes with the message: "no installed debugger has just_in-time debugging enabled" (I don't know how to debug IE7 because I only have the CLR debugger which can debug only managed code)
Do you know what I should do ? Any path where I should look for information ?
Thanks
EDIT:
In fact the error is not cause by the .RemoveDialogHandler
I added
ZvLogManager.Info("start wait");
Browser.Wait(10);
ZvLogManager.Info("end wait");
just before the .RemoveDialogHandler, and I get the error message of IE between the "start wait" and "end wait".
So it the download of the file that makes it crash. Any idea ?