使用Poltergeist插件Ruby的无头测试

使用Poltergeist插件Ruby的无头测试,ruby,cucumber,phantomjs,poltergeist,Ruby,Cucumber,Phantomjs,Poltergeist,我正在尝试使用Poltergeist驱动程序运行一个简单的无头浏览器测试。当我尝试连接到该网页时,我收到以下消息: An existing connection was forcibly closed by the remote host. (Errno::ECONNRESET) 我已经尝试将phantomjs_选项:['-ignoresslerrors=yes']行添加到我的env文件中,但它仍然没有连接 还有其他解决办法吗 我使用了恶鬼1.5.1和幻影1.8.1。水豚2.2.1 这可能是兼

我正在尝试使用Poltergeist驱动程序运行一个简单的无头浏览器测试。当我尝试连接到该网页时,我收到以下消息:

An existing connection was forcibly closed by the remote host. (Errno::ECONNRESET)
我已经尝试将phantomjs_选项:['-ignoresslerrors=yes']行添加到我的env文件中,但它仍然没有连接

还有其他解决办法吗

我使用了恶鬼1.5.1和幻影1.8.1。水豚2.2.1

这可能是兼容性问题吗


任何帮助都会很好

PhantomJS1.8.1真的很老了。可能将1.9.7与-ssl-protocol=any一起使用,或者仅使用1.9.8?谢谢,我更新到了1.9.8,在看到您的代码行后,我不得不添加以下内容:phantomjs_选项:['-忽略ssl错误=yes','-ssl-protocol=TLSv1'],