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

"Handle Alert Dialog" function doesn't work for "Are you sure you want to navigate from this page?" alert

4 Answers 45 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
algot
Top achievements
Rank 1
algot asked on 13 Dec 2011, 12:54 PM
I have following problem with "Handle Alert Dialog" function.
I close window and alert is displayed.
http://screencast.com/t/xOYEwxrQsn4

I have following steps in my code:
http://screencast.com/t/tsmKnsQW4T

If I run test step which closes window doesn't finished because alert is displayed but alert can't be processed because previous step is not finished yet.

4 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 13 Dec 2011, 04:23 PM
Hello Alexander,

That is actually an OnBeforeUnload Dialog.

If your test has more steps to execute after the point where it appears, insert an OnBeforeUnload Handler step. If there are no more steps and it appears at the absolute end of the test (when Test Studio is automatically closing the browser), no Handler step should be necessary. We recently introduced code to automatically handle that dialog when it appears after the test finishes.

If you're using the Test Studio version tagged here, 2011.1.502, you'll need to upgrade to the latest version to gain this functionality.

All the best,
Anthony
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
algot
Top achievements
Rank 1
answered on 13 Dec 2011, 04:37 PM
OK and Cancel buttons confused me.
Thank you. It works!
0
MRMCSP
Top achievements
Rank 1
answered on 15 Apr 2014, 09:21 AM
Hi, I am using the latest version of telerik and I have noticed that  if the onBeforeUnload Dialog appears at the end of a test, It is not handled.
Although the test passes, but the browser window remains open, with the Dialog box.

Can you explain on how do I make sure that at the end of test, all the browser windows are closed and OnBeforeUnload Dialog is handled in the end?
0
Boyan Boev
Telerik team
answered on 18 Apr 2014, 06:30 AM
Hi,

Thank you for contacting us.

In order to assist you best please:

1. Send us the execution log.

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

3. Could you please grant us access to the application, so we can reproduce the issue.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
algot
Top achievements
Rank 1
Answers by
Anthony
Telerik team
algot
Top achievements
Rank 1
MRMCSP
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or