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

Test Studio QA edition not handling IE dialog box

3 Answers 158 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Clive
Top achievements
Rank 1
Clive asked on 03 Aug 2011, 09:34 AM
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

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 03 Aug 2011, 03:48 PM
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?
0
Clive
Top achievements
Rank 1
answered on 03 Aug 2011, 04:58 PM
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
0
Plamen
Telerik team
answered on 04 Aug 2011, 03:26 PM
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!
Tags
General Discussions
Asked by
Clive
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Clive
Top achievements
Rank 1
Share this question
or