How to handle IE Modal Dialogs

4 posts, 0 answers
  1. Sudarshan
    Sudarshan avatar
    22 posts
    Member since:
    Feb 2013

    Posted 24 Apr 2013 Link to this post

    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..  
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 25 Apr 2013 Link to this post

    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
  3. Sudarshan
    Sudarshan avatar
    22 posts
    Member since:
    Feb 2013

    Posted 25 Apr 2013 Link to this post

    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..
  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 29 Apr 2013 Link to this post

    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
Back to Top