Sunday, 10 May 2015

Unexpected Modal Dialog found error in Selenium Webdriver

When automating the test cases using Selenium WebDriver, we often encounter this error saying "Unexpected Modal Dialog found".

This error usually comes when Selenium Webdriver is not able to perform any operation on the page due to Alert dialog being open on the page.

To fix this error, you need to handle that alert.
You can click on ok or cancel based upon your requirement.
Below links will help you.

  1. Handle alerts in Java
  2. Handle alerts in C#.Net

What do you think on above selenium topic. Please provide your inputs and comments. You can write to me at

No comments:

Post a Comment

Buy Best Selenium Books