硒以未捕获的错误随机结束 [英] Selenium ends randomly with uncaught error
问题描述
我正在使用摩卡,webdriverio,phantomjs 试图找到一种方法,以确保Selenium在随机情况下失败(正常情况下50%正常,在使用相同代码的不同测试中50%失败).
I'm using mocha, webdriverio, phantomjs Trying to find a way why Selenium is failing in random cases (50% its ok, 50% breaks in different tests with the same code).
错误是
Uncaught RuntimeError
(UnknownError:13) An unknown server-side error occurred while processing the command.
Problem: POST /session//url
Build info: version: '2.42.0', revision: '5e82430', time: '2014-05-22 19:00:03'
System info: host: 'example.com', ip: '127.0.0.1', os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.20', java.version: '1.7.1'
Driver info: driver.version: unknown
实际上,驱动程序信息是EventFiringWebDriver,有时未显示.
In fact driver info is EventFiringWebDriver and sometimes it doesn't shown.
通过互联网浏览,找不到任何解决方案.测试是异步的,但如示例中的1到1,总数量约为200,超时确实很大,这不是问题.
Looked through the internet and can't find any solutions. Tests are asynchronus, but 1 to 1 as in the example, the total ammount is about 200, timeout is made really big, it's not a problem.
推荐答案
问题很老,可以在这里找到 https://github.com/detro/ghostdriver/issues/140
The issue is pretty old and could be found here https://github.com/detro/ghostdriver/issues/140
可以通过 http://进行部分修复matejtymes.blogspot.co.uk/2014/10/webdriver-fix-for-unreachablebrowserexc.html ,但您需要从源中重建硒(并不难:))
Could be partly fixed with this http://matejtymes.blogspot.co.uk/2014/10/webdriver-fix-for-unreachablebrowserexc.html but you need to rebuild selenium from sources (not so difficult :))
这篇关于硒以未捕获的错误随机结束的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!