问题
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:
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.
来源:https://stackoverflow.com/questions/50979889/curl-error-thrown-for-http-post-to-session-with-params-facebook-webdriver-exce