黄瓜样板错误 运行

Cucumber-boilerplate error running

我正在寻找使用黄瓜自动测试 js 的简单设置, 我找到了一些不错的包 webdriverio/cucumber-boilerplate,但看起来它对我不起作用有一些错误,例如:

Uncaught Error: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html

我所做的就是复制这个测试文件夹并将 dep 添加到包中。 也许您可以推荐一些带有简单设置和示例的不错的软件包?

安装 chromedriver 并设置路径后 在我安装 selenium 后,从配置中设置 url 和 selenium 端口对我来说都有效。