【发布时间】:2020-12-20 18:27:09
【问题描述】:
每当我尝试运行php artisan dusk 时,我总是会收到此错误:
Tests\Browser\ExampleTest::testBasicExample
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"capabilities":{"firstMatch":[{"browserName":"chrome","goog:chromeOptions":{"binary":"","args":["--disable-gpu","--headless","--window-size=1920,1080","platform:mac","--no-sandbox"]}}]},"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"binary":"","args":["--disable-gpu","--headless","--window-size=1920,1080","platform:mac","--no-sandbox"]}}}
Operation timed out after 10004 milliseconds with 0 bytes received
我已经尝试了所有关于类似问题的解决方案,但没有一个主题有效。
谁能帮帮我?
【问题讨论】:
-
检查黄昏驱动程序是否与您当前的 chrome 版本匹配。例如。如果你有 chrome 84 然后运行
php artisan dusk:chrome-driver 84 -
如何查看我的 chrome 版本?
-
打开 chrome,右上角的时钟 ⋮ 图标,然后 Help > About google chrome 。在linux中你也可以使用
google-chrome --version
标签: php laravel laravel-artisan laravel-dusk