Web Driver Curl Exception

后端 未结 4 964
时光说笑
时光说笑 2021-01-17 21:18

Trying to use Codeception Web Driver and Selenium to emulate ajax through an acceptance test. I was using PhpBrowser but when I was having issues with Ajax my friend suggest

4条回答
  •  再見小時候
    2021-01-17 21:56

    I had this problem, and then I remembered that I need to run Xvfb -ac :0 -screen 0 1280x1024x16 & after every Homestead reload (before running Dusk tests).

    Then Dusk works instead of saying:

    Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY"}}

    Operation timed out after 30000 milliseconds with 0 bytes received

    See https://stackoverflow.com/a/42630737/470749

提交回复
热议问题