黄瓜错误,当我运行我的黄瓜测试 [英] Cucumber error when I run my cucumber tests

查看:318
本文介绍了黄瓜错误,当我运行我的黄瓜测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是ROR的新手。我使用Ruby 1.9.2p290,rvm 1.10.2,chromedriver version = 18.0.995.0。



当我通过execute命令运行黄瓜测试:



bundle exec cucumber features / mytest.feature



我收到错误讯息,如下所示:

(::)失败的步骤(::)



代理必须是类型字典, Received:null



(Selenium :: WebDriver :: Error :: WebDriverError)

解决方案

似乎此错误发生在chromedriver版本18之后。

(irb screenshot: http://www.pastie.org/pastes/3199163



要获得有效的版本检查 https://github.com/flavorjones/chromedriver-helper


I am new to ROR. I am using Ruby 1.9.2p290, rvm 1.10.2, chromedriver version=18.0.995.0.

When I run the cucumber test by execute command:

bundle exec cucumber features/mytest.feature

I got the error message which is showing below:

(::) failed steps (::)

proxy must be of type dictionary, not null. Received: null

(Selenium::WebDriver::Error::WebDriverError)

解决方案

It seems that this error occurs since chromedriver version 18.
(irb screenshot: http://www.pastie.org/pastes/3199163)

To get a working version checkout https://github.com/flavorjones/chromedriver-helper

这篇关于黄瓜错误,当我运行我的黄瓜测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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