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

Getting past javascript alert boxes

3 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Courtney Weatherton
Top achievements
Rank 1
Courtney Weatherton asked on 24 Feb 2010, 09:27 PM
I am writing a test for deleting an item.  After pressing delete a javascript alert box pops up asking the user to confirm the delete.  The testing tools don't seem to see the alert box and ignore the action of clicking OK.  When I run my test it just hangs when it gets to the alert box.  Has anyone run into this before?  Is there some coded step I can add to simulate pressing enter on the keyboard?

Thanks

3 Answers, 1 is accepted

Sort by
0
Accepted
Missing User
answered on 24 Feb 2010, 09:50 PM
Hi Courtney,

Thanks for the post and the question. Have you tried the dialog handlers as described in this video? If the none of the dialog handlers work (in this case Alert or at least Generic handler) please post back and let us know.

Kind regards,
Nelson Sin
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
Courtney Weatherton
Top achievements
Rank 1
answered on 24 Feb 2010, 10:16 PM
That's exactly what I was looking for.  Thank you!
0
Missing User
answered on 24 Feb 2010, 11:43 PM
Hi again Courtney,

I'm glad you got it working, please feel free to start new threads if you run into anything else.

Regards,
Nelson
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.
Tags
General Discussions
Asked by
Courtney Weatherton
Top achievements
Rank 1
Answers by
Missing User
Courtney Weatherton
Top achievements
Rank 1
Share this question
or