每当我尝试运行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
我尝试了所有有关类似问题的解决方案,但是没有一个主题有效。
有人可以帮助我吗?
答案 0 :(得分:0)
运行:
php artisan dusk:chrome-driver --detect