Curl error thrown for http POST to /session with p

2019-08-05 08:21发布

Does anyone encountered this type of error when you run laravel 5.6 dusk

ERRor Log in the Terminal:

Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"binary":"","args":["--disable-gpu","--headless"]}}}

Failed to connect to localhost port 9515: Connection refused

1条回答
别忘想泡老子
2楼-- · 2019-08-05 09:03

Make sure your chrome-driver is executable and running. Try following command

./vendor/laravel/dusk/bin/chromedriver-linux --port=8888

You should see following output

Starting ChromeDriver 2.x.x (649f9b868f6783ec9de71c123212b908bf3b232e) on port 8888 Only local connections are allowed.

查看更多
登录 后发表回答