I am developing a tool to automate testing of a web application. I want to handle the popup messages thrown in error scenarios. The problem am facing is after a button click a popup message is thrown, but only after a response is given to the message box(ie clicking on any buttons in the message box) the execution continues, till then the web browser is busy waiting for a response. Please suggest.
+1
A:
You could have your application inject some javascript into the page that overrides the default alert/confirm function. This would allow you to run code before the alert is shown or completely override the functionality so that the alert isn't shown at all.
See this custom alert demonstration for an easy example of how to override the default alert function.
AJ
2009-10-14 05:34:32
Thanks for the reply. But my requirement is to show the alert message and to handle it according to the application user.
Menaka
2009-10-14 08:40:36
A:
Hi Menaka, I too have the same problem. Did u got any solution for that? Thanks in advance
mohan
2010-05-11 05:11:11