Alert Handling - Selenium WebDriver / Selenium RC 2.18.0 - Exception

Test automation software for a web application runs in IE, Firefox, Chrome and Safari and is written using C # and Selenium WebDriver (IE, Firefox, Chrome), Selenium RC (Safari).

When upgrading to version 2.18.0, a new error appeared. I see the following exception:

System.InvalidOperationException: modal dialog is present (UnexpectedAlertOpen)

I saw that this exception was not thrown for IE, Firefox and Safari.

I looked through the release documentation and did not find anything that suggests that I should do otherwise to accept or cancel the warnings.

Is this a bug or is there a new procedure for tracking alerts?

+6
source share
1 answer

I have had the same problem on my ccnet build server with Firefox since the last update, and I found that I need to update my version of Java due to a security issue.

After the upgrade, all my tests were successful, and I did not have this error "System.InvalidOperationException: modal dialog (UnexpectedAlertOpen)" anymore.

+1
source

Source: https://habr.com/ru/post/907337/


All Articles