gpt4 book ai didi

运行测试时 Selenium RC 错误

转载 作者:行者123 更新时间:2023-12-02 21:32:09 25 4
gpt4 key购买 nike

在 seleniums Bromine 中运行大量测试时出现此错误,selenium RC 版本 1.0.2 输出如下:

警告 - GET/selenium-server/driver/?cmd=testComplete&1=&2=&sessionId=1274d41621c64fc08c1e7ea0a58f260b HTTP/1.0 java.lang.IllegalStateException:意外命令 json={command:"open",target:"/Library/Security/Login.aspx?ReturnUrl=%2fIndex.aspx",value:""} 在新命令 selectWindow 可以添加到 org.openqa.selenium.server.CommandQueue.doCommandWithoutWaitingForARe 之前到位响应(CommandQueue.java:121)

任何想法

最佳答案

最近我不得不在我们的测试环境中跟踪这个问题,看来原因是 Firefox 崩溃了。如果此错误发生在两个“命令超时”异常之后,则您的浏览器可能崩溃或挂起。

在检查 Selenium RC 的代码时,我意识到当命令队列溢出时会出现“意外命令”错误。这可能是由于浏览器缺乏响应造成的,因此如果浏览器崩溃,您最终会收到此错误。

检查您的 dmesg 日志(或其他一些日志,如果不是在 Linux 下)以查看是否有任何可疑内容。就我而言,有这样的条目:

plugin-containe[30867]: segfault at 0 ip 00007f07a6ff503d sp 00007f079d593260 error 4 in libxul.so[7f07a6265000+146f000]

libxul.so 和plugin-container 是Firefox 的模块。将其升级到新版本对我的情况有所帮助。

关于运行测试时 Selenium RC 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2408171/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com