IE7 crashed when RemoveDialogHandler is called
Posted
by
Baptiste Pernet
on Stack Overflow
See other posts from Stack Overflow
or by Baptiste Pernet
Published on 2011-01-03T13:53:53Z
Indexed on
2011/01/03
14:53 UTC
Read the original article
Hit count: 202
internet-explorer-7
|watin
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 ?
© Stack Overflow or respective owner