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

How to handle IE Modal Dialogs

3 Answers 88 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sudarshan
Top achievements
Rank 2
Sudarshan asked on 24 Apr 2013, 07:12 PM
Hi,

how to handle IE modal Dialog> The dialog appears on clicking an HTMLDiV Element. In this case mouseclick() is not working. its not showing the iedialog when i use mouseclick but when i use click() it shows the IEdialog. but using click() its not navigating to IEDialog. It hangs..

Is it suitable to use click() to display IEDialog? mouseclick() is not opening the popup..  

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 25 Apr 2013, 09:26 AM
Hello Sudarshan,

Yes it is suitable to use Click() to trigger a dialog.

In order to help you best please give us more detailed information.

1. What do you mean by "Click() is not navigating to the dialog, it hangs"? 

2. What code do you use to handle the dialog?

3. Please send us the trace log.

You can also try MouseClick(MouseClickType.LeftDoubleClick);

Hope to hear from you soon.

All the best,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Sudarshan
Top achievements
Rank 2
answered on 25 Apr 2013, 11:33 AM
There is a html div element, on clicking that element it should open the IE modal dialog. 
Ex: Html div = find.byid<htmldiv>("----");
div.click(); //This will invoke the IE dialog 
ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions ieActions = (ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions)ActiveBrowser.Actions;
  ieActions.ConnectIEDialog("----", 300);
Manager.WaitForNewBrowserConnect("---", true, 10000);
ActiveBrowser.IsIEDialog.shouldbetrue; 
   // rest of the code to handle elements in the dialog


when i use div.click() it'll open the dialog but control is not passing further.. It stops there and it shows processing for a long time. it neither shows failed status nor it stops execution.. i even tried putting the breakpoint but still the control is not going further after the div.click() command and the IE modal dialog remains opened.

when i use div.MouseClick(); it's not opening the IE modal dilaog..
0
Boyan Boev
Telerik team
answered on 29 Apr 2013, 12:14 PM
Hello Sudarshan,

I was able to reproduce the issue when I triggered the dialog via a regular click (i.e. not a real click). It seems you should use a real click to trigger the dialog.

If div.MouseClick() does not trigger the dialog, please try a double click: div.MouseClick(MouseClickType.LeftDoubleClick);

If the issue persists please:

1. Send us the Trace log.

2. Please record a short video to show us the issue you are experiencing. Jing is great for this.

3. Provide us with a copy of your test and access to your application so we can reproduce the issue on our end and give you a solution.

4. Alternatively you can take a Fiddler trace using FiddlerCap and send it to us in a zip file. Basically with that trace I'll try to "simulate" your app in order to reproduce the issue.

Hope to hear from you soon.

Greetings,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Sudarshan
Top achievements
Rank 2
Answers by
Boyan Boev
Telerik team
Sudarshan
Top achievements
Rank 2
Share this question
or