#295 W3wp.exe crashes on AlertDialog.

Version_2.next
open
nobody
None
1
2014-08-13
2013-12-02
rajan bhayana
No

W3wp.exe crashes on AlertDialog.

We have a scenario. On the test cases, we handle 2 back to back dialog. One is for confirmation and then next is alert. We handle it the following way.

ConfirmDialogHandler handler = new ConfirmDialogHandler();
using (new UseDialogOnce(myBrowser.DialogWatcher, handler))
{
myBrowser.Link(Find.ByText(Button)).ClickNoWait();
handler.WaitUntilExists();
handler.OKButton.Click();
}

        AlertDialogHandler alertDialogHandler = new AlertDialogHandler();
        using (new UseDialogOnce(myBrowser.DialogWatcher, alertDialogHandler))
        {
            System.Threading.Thread.Sleep(1000);
            alertDialogHandler.WaitUntilExists();
            alertDialogHandler.OKButton.Click();
        }
        myBrowser.WaitForComplete();

this part is working fine.
but on the next page, we again have to handle a alert box which is done by following.
using (new UseDialogOnce(myBrowser.DialogWatcher, handler3))
{
myBrowser.Links[13].Click();
handler3.WaitUntilExists();
handler3.OKButton.Click();
}
myBrowser.WaitForComplete();

we have tried many other ways to find link and click (using ID, text,name etc), but everytime click event is raised. w3wp.exe crashes giving an unhandled exception. wehave tried ie 9, 10, 11. tried going through dumps, many work arounds but nothing. Anyone aware of this?

Fault bucket , type 0
Event Name: APPCRASH
Response: Not available
Cab Id: 0

Problem signature:
P1: w3wp.exe
P2: 7.5.7601.17514
P3: 4ce7a5f8
P4: KERNELBASE.dll
P5: 6.1.7601.18229
P6: 51fb1116
P7: c06d007e
P8: 0000c41f
P9:
P10:

Faulting application name: w3wp.exe, version: 7.5.7601.17514, time stamp: 0x4ce7a5f8
Faulting module name: KERNELBASE.dll, version: 6.1.7601.18229, time stamp: 0x51fb1116
Exception code: 0xc06d007e
Fault offset: 0x0000c41f
Faulting process id: 0x540
Faulting application start time: 0x01ceef1094f08923
Faulting application path: C:\windows\SysWOW64\inetsrv\w3wp.exe
Faulting module path: C:\windows\syswow64\KERNELBASE.dll
Report Id: a40edc53-5b04-11e3-ae36-681729c76d3d

Discussion