Cucumber-js TypeError:e.scrollIntoView不是函数

时间:2016-02-24 16:04:00

标签: node.js cucumberjs

我在尝试设置cucumber-js https://github.com/cucumber/cucumber-js

时遇到了同样的异常

功能:示例功能

作为Cucumber.js的用户,我希望有关于Cucumber的文档,以便我可以专注于构建出色的应用程序

场景:阅读文档#features \ my_featue.feature:8鉴于我在Cucumber.js GitHub存储库#features \ step_definitions \ my_step_definitions.js:4 TypeError:e.scrollIntoView不是n的函数({{3 }} at at Object.r [as scrollToFragmentTarget](https://assets-cdn.github.com/assets/github-30a28ef79b52e130ca6c7a146955fad76599bfdde471ee6896f356fb1ae94a56.js:2:10072)at https://assets-cdn.github.com/assets/github-30a28ef79b52e130ca6c7a146955fad76599bfdde471ee6896f356fb1ae94a56.js:2:10169 at r https://assets-cdn.github.com/assets/github-30a28ef79b52e130ca6c7a146955fad76599bfdde471ee6896f356fb1ae94a56.js:2:10882https://assets-cdn.github.com/assets/frameworks-bebe77cf3c6ad6033e7df85a57952b158d1d0fadbe3590af19a960b00413bbec.js:6:16866 at s(https://assets-cdn.github.com/assets/frameworks-bebe77cf3c6ad6033e7df85a57952b158d1d0fadbe3590af19a960b00413bbec.js:6:16231)at HTMLDocument .a(https://assets-cdn.github.com/assets/frameworks-bebe77cf3c6ad6033e7df85a57952b158d1d0fadbe3590af19a960b00413bbec.js:6:15888)在dispatchPhase的callListeners(C:\ Users \ mayank.arora \ Documents \ tutorials \ 112_NodeJS \ Cucumber \ node_modules \ jsdom \ lib \ jsdom \ events \ EventTarget.js:170:34)位于HTMLDocument.EventTarget.dispatchEvent的C:\ Users \ mayank.arora \ Documents \ tutorials \ 112_NodeJS \ Cucumber \ node_modules \ jsdom \ lib \ jsdom \ events \ EventTarget.js:159:7)(C:\ Users \ mayank.arora \ Documents \ tutorials \ 112_NodeJS \ Cucumber \ node_modules \ jsdom \ lib \ jsdom \ events \ EventTarget.js:115:3)在https://assets-cdn.github.com/assets/frameworks-bebe77cf3c6ad6033e7df85a57952b158d1d0fadbe3590af19a960b00413bbec.js:6:15916当我转到README文件时#features \ step_definitions \ my_step_definitions.js:15然后我应该看到"用法"作为页面标题#features \ step_definitions \ my_step_definitions.js:22

失败的场景:features \ my_featue.feature:8#场景:阅读文档

1个场景(1个失败)3个步骤(1个失败,2个跳过)0m02.003s

0 个答案:

没有答案