简体   繁体   中英

laravel dusk is giving the same CURL error whenever I try to run it

Whenever I try running php artisan dusk , I always get this error:

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

I have tried all the solutions out there concerning similar problems but none of theme have worked.

Can anyone help me?

Run:

php artisan dusk:chrome-driver --detect

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM