Alert Handling - Selenium WebDriver/ Selenium RC 2.18.0 - Exception

回眸只為那壹抹淺笑 提交于 2019-12-07 03:29:11

问题


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

A new error occurred when I upgraded to version 2.18.0 today. I am seeing the following exception:

System.InvalidOperationException: Modal dialog present (UnexpectedAlertOpen)

I saw this exception beingn thrown for IE, Firefox and Safari so far.

I looked up the release documentation and did not find anything that suggests that I should do differently to accept or cancel on alerts.

Is this a bug, or is there a new procedure to follow pertaining to alerts?


回答1:


I had the same problem on my ccnet build server with Firefox since last update and I found that I need a update of my java version because of a security issue.

After the update all my test succeed and I had no more this error "System.InvalidOperationException: Modal dialog present (UnexpectedAlertOpen)".



来源:https://stackoverflow.com/questions/9084920/alert-handling-selenium-webdriver-selenium-rc-2-18-0-exception

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!