This is a migrated thread and some comments may be shown as answers.

Confirm Dialog clicks twice on Cancel button in IE9

5 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Anton
Top achievements
Rank 1
Anton asked on 21 Jan 2013, 10:59 AM
Hello.
I have issue when handle Confirm Dialog.
When i want to cancel dialog, WebAii clicks twice on it.
After second click on cancel button tests want to continue to navigate and throw exception:
        • ArtOfTest.WebAii.Exceptions.ExecuteCommandException: ExecuteCommand failed!
          InError set by the client. Client Error:
          System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (Exception from HRESULT: 0x800700AA)
          at ArtOfTest.ShDocVw.WebBrowserClass.Navigate2(Object& URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)
          BrowserCommand (Type:'Action',Info:'NotSet',Action:'NavigateTo',Target:'null',Data:'http://localhost:9090/webstudio-test/',ClientId:'Client_425a0a71-af92-4778-bb1d-6e20c2a3960c',HasFrames:'False',FramesInfo:'',TargetFrameIndex:'-1',InError:'True',Response:'System.Runtime.InteropServices.COMException (0x800700AA): The requested resource is in use. (Exception from HRESULT: 0x800700AA)
          at ArtOfTest.ShDocVw.WebBrowserClass.Navigate2(Object& URL, Object& Flags, Object& TargetFrameName, Object& PostData, Object& Headers)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessActionCommands(BrowserCommand request)
          at ArtOfTest.InternetExplorer.IECommandProcessor.ProcessCommand(WebBrowserClass ieInstance, BrowserCommand request, IHTMLDocument2 document)')
          InnerException: none.

    I have a simple code which work perfect in Firefox but fail in IE9.

var dialog = ConfirmDialog.CreateConfirmDialog(ActiveBrowser, DialogButton.OK);
            Manager.DialogMonitor.AddDialog(dialog);
            Manager.DialogMonitor.Start();
            Find.ByAttributes<HtmlAnchor>("title=Remove Table").Click();
            dialog.WaitUntilHandled();
            Manager.DialogMonitor.Stop();

5 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 23 Jan 2013, 01:30 PM
Hi Anton,

We are not able to diagnose the issue from the exception alone. We need to see the issue first-hand so we can study and learn what is causing it. Is your application publicly accessible? If not, can you provide a sample site that demonstrates the issue you are experiencing?  
 
As an alternative you can record and send us a Fiddler trace using FiddlerCap, which is a good substitute for direct access. Basically with that trace we'll be able to "simulate" your app in order to reproduce the problem. If you feel that this information is sensitive, you can submit a support ticket which is confidential, unlike this forum. Thank you for providing the information we need to best assist you.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Anton
Top achievements
Rank 1
answered on 23 Jan 2013, 01:38 PM
Hello Plamen,

Yes, You can download it from here.
To make popup appeared, you should follow these steps:
1. Click on Repository button.
2. Click on 'Create Project' and create project.
3. Goto Rules Editor.
4. Click on project.
5. Click on Remove button.
0
Plamen
Telerik team
answered on 23 Jan 2013, 03:54 PM
Hello Anton,

Unfortunately as you can see in this video I wasn't able to reproduce the issue as you described it using the provided repro steps. The Cancel button is clicked only once during the run and the Confirm dialog is successfully handled. Can you please provide a sample test that I can run against this application and reproduces the issue? I want to be sure that I'm using the exact same code in my reproduction attempts. A Jing video demonstrating the issue may also help me to better understand what is happening.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Anton
Top achievements
Rank 1
answered on 24 Jan 2013, 08:02 AM
Hello Plamen.
Sorry for your time. This issue reproduced only on my computer. This is a second issue with Dialog popups which depends only on my pc. 
I don't know what to do. Maybe reinstall Windows )

My PC: Win7 x64 (project compiled in x86 platform and runned in IE9 x32).
Second pc (where test passed without error): Win7 x32 and IE9.
0
Plamen
Telerik team
answered on 25 Jan 2013, 04:35 PM
Hello Anton,

Yes, this is most likely a system configuration issue, but unfortunately without a local repro it's really hard to determine what could cause such behavior. If you haven't done so already, one thing you can try is to configure your browser according our documentation.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Anton
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Anton
Top achievements
Rank 1
Share this question
or