在WSL上使用Nightwatch运行Selenium测试时,无法在defalt位置找到二进制文件错误

在WSL上使用Nightwatch运行Selenium测试时,无法在defalt位置找到二进制文件错误,selenium,windows-subsystem-for-linux,nightwatch.js,Selenium,Windows Subsystem For Linux,Nightwatch.js,我想学习e2e,并决定使用夜视,据我所知,它使用的是Selenium。我用npm I nightwatch geckodriver chromedriver安装了deps——按照他们在其应用程序中的建议保存开发。当我运行演示测试时,我得到一个错误: { value: { error: 'session not created', message: "Expected browser binary location, but unable to

我想学习e2e,并决定使用夜视,据我所知,它使用的是Selenium。我用npm I nightwatch geckodriver chromedriver安装了deps——按照他们在其应用程序中的建议保存开发。当我运行演示测试时,我得到一个错误:

   {
     value: {
       error: 'session not created',
       message: "Expected browser binary location, but unable to find binary in default location, no 'moz:firefoxOptions.binary' capability provided, and no binary flag set on the command line",
       stacktrace: ''
     }
⚠ Error connecting to localhost on port 4444.
我猜这与我使用WSL有关。建议在WSL上运行它的方法是什么