Test Studio QA edition not handling IE dialog box

4 posts, 0 answers
  1. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 03 Aug 2011 Link to this post

    Hi,
    When logging out of the system I'm testing, IE(8) throws a dialog box 'The webpage you are viewing is trying to close the window. Do you want to close this window?'

    Test Studio seems unable to handle this dialog box.
    The recorded step for handling the dialog box doesn't work on playback, and I've tried all the dialog handlers available.

    Is there a way round this?

    Is it possible to execute a left mouse click blindly on the screen just specifying a set of coordinates?

    Thanks
    Clive
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 03 Aug 2011 Link to this post

    Hello Clive,

    Are you using Test Studio Standalone version or the Visual Studio Plug-in version? In the standalone version we recently added a new "OnBeforeUnload" dialog handler which is meant to handle this very dialog. (it's missing in the Visual Studio Plug-in version for which we have a bug filed).

    Another way to handle this dialog is to use our UnexpectedDialogAction feature, which allows the test to automatically handle unexpected dialogs. You can reed more about it here.

    There are other ways around this, by using a blind mouse click or a blind Enter key press as seen here and here. Also check out and this video here.

    Let me know if you have any further questions!

    Greetings,
    Plamen
    the Telerik team
    Check out the Test Studio roadmap to find out more about the new performance testing functionality coming in our R2 2011 release this September!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  3. Clive
    Clive avatar
    21 posts
    Member since:
    Sep 2010

    Posted 03 Aug 2011 Link to this post

    Hi Plamen,
    Thanks for the reply.
    I'm using the standalone QA edition version 2010.3
    I've got round it by the following;
    'ActiveBrowser.Manager.Desktop.Mouse.Click(MouseClickType.LeftClick,1000,600)'

    This is hardly robust of course and I'd prefer a proper way of handling it.

    Presumably the dialog handlers UnexpectedDialogAction and OnBeforeUnload are only available in relesae 2011.R1?
    Clive
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 04 Aug 2011 Link to this post

    Hello Clive,

    The UnexpectedDialogHandler has been in the product for about a year now. It is included in QA edition version 2010.3. You are correct that OnBeforeUnload dialog handler only exists in 2011.1.712 and above.

    I saw that you are using an older version, but  why not take advantage of our new additions to Test Studio. The new release incorporates many fixes and new features that could be useful to you.

    You can download it from your Telerik account(see screenshot).

    Greetings,
    Plamen
    the Telerik team
    Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Back to Top