Facebook 在家园上奔跑的拉威尔黄昏

Facebook 在家园上奔跑的拉威尔黄昏,facebook,laravel,laravel-dusk,Facebook,Laravel,Laravel Dusk,我使用Homestead版本1.0.1和Laravel版本5.4.16。我通过阅读设置了拉威尔黄昏 但是,当我通过ssh运行php artisan Dash到我的家园时。我犯了如下错误 PHPUnit 5.7.17由塞巴斯蒂安·伯格曼和贡献者撰写 e1 /1(100%) 时间:2.52分钟,内存:10.00MB 有1个错误: 1) Tests\Browser\ExampleTest::testBasicExample Facebook\WebDriver\Exception\WebDriverE

我使用Homestead版本1.0.1Laravel版本5.4.16。我通过阅读设置了拉威尔黄昏

但是,当我通过ssh运行
php artisan Dash
到我的家园时。我犯了如下错误

PHPUnit 5.7.17由塞巴斯蒂安·伯格曼和贡献者撰写

e1 /1(100%)

时间:2.52分钟,内存:10.00MB

有1个错误:

1) Tests\Browser\ExampleTest::testBasicExample Facebook\WebDriver\Exception\WebDriverException:引发卷曲错误 对于带有参数的http POST to/session: {“desiredCapabilities”:{“browserName”:“chrome”,“platform”:“ANY”,“chromeOptions”:{“binary”:“args”:[“no first run”]}}

操作在30001毫秒后超时,接收到0字节


有没有办法解决这个问题?是的,可以在Dash的github页面上找到。这是一个已知的问题,他们正在努力更新下一个宅地盒子

基本问题是宅地盒子没有可视界面和 黄昏运行一个真正的浏览器,所以你必须安装一个chromedriver 如果你想用的话

但就目前而言,这对我很有效:

不包括在该职位中,但对我来说是必要的: 确保您拥有以下权限集
cd供应商/laravel/dash/bin;chmod 775*

github帖子中的步骤: 首先,google chrome需要安装在来宾操作系统中:

$ wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
$ sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
$ sudo apt-get update && sudo apt-get install -y google-chrome-stable
接下来是xvfb:

$ sudo apt-get install -y xvfb
尝试启动
/vendor/laravel/dusk/bin/chromedriver linux--port=8888。
如果在加载库(libnss3.so、libgconf-2.so.4)时出现一些错误,请尝试以下操作:

$ sudo apt-get install -y libnss3-dev libxi6 libgconf-2-4
当你看到

$ ./vendor/laravel/dusk/bin/chromedriver-linux --port=8888
Starting ChromeDriver 2.25.426924 (649f9b868f6783ec9de71c123212b908bf3b232e) on port 8888
Only local connections are allowed.
this means ChromeDriver can be started (so SupportsChrome trait should be able to start it too). You can stop this process for now (Ctrl+C).

此外,您可能希望将您的开发域添加到来宾的/etc/hosts文件中: 127.0.0.1 domain.dev

这个问题是在默认情况下将chromedriver添加到homestead,并将 将于四月中旬解决


我已经按照建议安装了google chrome stable,在运行时没有抱怨依赖性,使用您的确切参数启动了xvfb命令,但我仍然收到超时错误。。。我试图在macOS主机上的Debian jessie容器中运行Dash。通过主机操作系统,Dusk可以启动浏览器。容器中chromedriver linux的权限为755。
$ Xvfb :0 -screen 0 1280x960x24 &
in a separate terminal window.