量angular器对象没有方法'然后'

我刚在我的fedora工作站上安装了量angular器。 我的testing在Windows 7和OS X上正常工作,但在Fedora上,我得到这个错误:

消息:失败:对象[对象对象]没有方法'然后'堆栈:错误:失败:对象[对象对象]没有方法'然后'在/usr/lib/node_modules/protractor/node_modules/jasminewd2/index.js: 102:16在[对象对象] .promise.ControlFlow.runInFrame_(/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)在[对象对象] .promise。 Callback_.goog.defineClass.notify(/usr/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)at [object Object] .promise.Promise.notify_(/ usr / LIB / node_modules /量angular器/ node_modules /selenium的webdriver / LIB /的webdriver / promise.js:563:12)

显然,工作站之间的差异是巨大的。 即使节点运行在不同的版本(在Fedora 0.10.36)。 但也许有人有同样的问题?

你得到这个错误是因为你在你的工作站上运行了Protractor 2.0,在你的其他机器上运行了1.x。 量angular器2.0有一个突破性的变化 ,去除element.then 。 你需要更新你的testing来解决这个变化。