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

Obtaining message text from the alert window

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
kovyar
Top achievements
Rank 1
kovyar asked on 23 Aug 2010, 03:02 PM
Hi, all,

I have to test our system in case of erroneous user actions (i.e. the user tries to do smth he has no privileges for).
In such cases our application refuses to do what the user wants to and notifies him about error via JS alert window.

One of my tasks is to check if the caption/text/buttons are correct in this dialog, so, for example, I am to check that there is only OK button on the notification and the notification is like it should be.

The problem is that under IE I've managed to do this pretty fine using the AlertDialog.Window property and its child windows. Sad but fact, under FF these modal windows have no children, so it is impossible to check the message.

So, now you understand the trouble I encountered.
Would be really good if someone could help me.

Thanks a lot,
Yaroslav

1 Answer, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 24 Aug 2010, 08:20 AM
Hello kovyar,

Can you please check the solution my colleagues shared in the following forum thread?

Getting text from a Javascript alert popup

I hope this helps!

Regards,
Konstantin Petkov
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
kovyar
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
Share this question
or