使用硒驱动程序的摩卡超时

Cle*_*mzd 6 mocha.js selenium-webdriver

我正在尝试使用selenium-driver启动我的mocha测试,但是我收到了这个错误:https://gist.github.com/Clemzd/f7bbaa77c492ee288765#file-gistfile1-txt.

我的selenium-server启动良好,因为我能够运行chrome会话.这是我用来启动我的mocha测试的代码:https://github.com/Clemzd/paige-tests.

我试图增加摩卡的超时但它不会改变任何东西.

小智 6

selenium-webdriver/testing似乎很难将mocha版本高于1.20.您可以通过将package.json中的mocha依赖项更改为以下内容来消除此错误:

mocha: "~1.20.1"