【问题标题】:laravel dusk is giving the same CURL error whenever I try to run it每当我尝试运行它时,laravel 黄昏都会给出相同的 CURL 错误
【发布时间】: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


【解决方案1】:

运行:

php artisan dusk:chrome-driver --detect

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-11-07
    • 1970-01-01
    • 2022-10-04
    • 1970-01-01
    • 2019-09-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多