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.
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
0
Accepted
Hello Alexander,
Anthony
the Telerik team
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.
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!
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?
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
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
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