WebdriverIO:黄瓜设置显示错误"无法读取未定义的属性长度"在运行测试时

时间:2016-01-30 00:44:30

标签: node.js selenium cucumber webdriver-io

我现在已经坚持了一段时间。我尝试使用webdriverIO黄瓜设置进行测试,并在webdriverIO网站上找到了文档和示例,我试图让它运行:https://github.com/webdriverio/webdriverio/tree/master/examples/wdio

我很确定我正确地遵循了说明,但是在运行wdio wdio.conf.js之后我一直收到以下错误:

    [01:31:40]:  DATA                {"desiredCapabilities":{"browserName":"firefox"
    ,"version":"","javascriptEnabled":true,"locationContextEnabled":true,"handlesAle
    rts":true,"rotatable":true,"platform":"ANY","loggingPrefs":{"browser":"ALL","dri
    ver":"ALL"},"requestOrigins":{"url":"http://webdriver.io","version":"3.4.0","nam
    e":"webdriverio"}}}

[01:32:03]:  SET SESSION ID d9d12d43-2bd2-48e1-979c-847a44c10ccd

ERROR: Cannot read property 'length' of undefined

browserName: "firefox"

任何想法?

我已经安装了以下npm包:

"cucumber": "^0.9.4",
"selenium-standalone": "^4.8.0",
"webdriverio": "^3.4.0"

在Windows 8.1上运行npm版本2.14.12和节点4.2.6

1 个答案:

答案 0 :(得分:0)

将它降级为黄瓜0.7.0对我有用