使用参数将http POST传递到/session的卷发错误:Facebook \ WebDriver \ Exception [英] Curl error thrown for http POST to /session with params: Facebook\WebDriver\Exception
本文介绍了使用参数将http POST传递到/session的卷发错误:Facebook \ WebDriver \ Exception的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当您运行laravel 5.6黄昏时,是否有人遇到这种类型的错误
Does anyone encountered this type of error when you run laravel 5.6 dusk
错误或登录到终端:
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
推荐答案
确保您的chrome驱动程序是可执行的并且正在运行.尝试执行以下命令
Make sure your chrome-driver is executable and running. Try following command
./vendor/laravel/dusk/bin/chromedriver-linux --port = 8888
./vendor/laravel/dusk/bin/chromedriver-linux --port=8888
您应该看到以下输出
在端口8888上启动ChromeDriver 2.x.x(649f9b868f6783ec9de71c123212b908bf3b232e) 仅允许本地连接.
Starting ChromeDriver 2.x.x (649f9b868f6783ec9de71c123212b908bf3b232e) on port 8888 Only local connections are allowed.
这篇关于使用参数将http POST传递到/session的卷发错误:Facebook \ WebDriver \ Exception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文