告警处理 - 硒的webdriver / Selenium RC的2.18.0 - 异常 [英] Alert Handling - Selenium WebDriver/ Selenium RC 2.18.0 - Exception

查看:203
本文介绍了告警处理 - 硒的webdriver / Selenium RC的2.18.0 - 异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的自动化测试软件为Web应用程序上的IE,火狐,Chrome和Safari上运行,并使用C#和硒的webdriver(IE,火狐,Chrome),硒RC(Safari浏览器)被写入。

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).

当我今天2.18.0升级到版本发生了新的错误。我看到以下异常:

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

System.InvalidOperationException:模态对话框存在(UnexpectedAlertOpen)

System.InvalidOperationException: Modal dialog present (UnexpectedAlertOpen)

我看到这个异常beingn抛出IE,Firefox和Safari至今。

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?

推荐答案

我不得不自上次更新与Firefox我CCNET构建服务器同样的问题,我发现,我需要的,因为安全性问题的我的Java版本的更新。

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.

更新后我所有的测试成功,我没有更多的这个错误System.InvalidOperationException:模态对话框存在(UnexpectedAlertOpen)。

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

这篇关于告警处理 - 硒的webdriver / Selenium RC的2.18.0 - 异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆