Hi
Thanks for the responses. I tried them but did not close the alert box.
Here is a sample code (HTML)
<html>\\ <head>\\ </head>\\ <body>\\ \\ Test closing alert boxes in a web page. Test\\ <script type="text/javascript">\\ alert("Your message is saved");\\ </script>\\ test\\ </body>\\ </html>
Here are the Selenium codes
1)
<tbody>\\ <tr>\\ <td>open</td>\\ <td>
http://localhost/test.html</td>\\ <td></td>\\ </tr>\\ <tr>\\ <td>chooseOkOnNextConfirmation</td>\\ <td></td>\\ <td></td>\\ </tr>
2)
<tr>\\ <td>get_alert</td>\\ <td></td>\\ <td></td>\\ </tr>
Can you share a working Selenium code ?
Many Thanks
Janesh