title: Selenium facebook webdriver error
body: <p>I am trying to run <code>facebook/php-webdriver</code> package, but I am stuck in this stage. </p>
  
  <p>It works fine in my localhost, but in my Ubuntu server, after some wait I get this error </p>
  
  <blockquote>
    <p>Curl error thrown for http POST to /session with params:
    {"desiredCapabilities":{"browserName":"firefox"}} Operation timed out
    after 30001 milliseconds with 0 bytes received</p>
  </blockquote>
  
  <p>This is what my code looks like</p>
  
  <pre><code> $browser_type = 'chrome';
        $host = 'http://localhost:4444/wd/hub'; // this is the default
          $capabilities = array(\Facebook\WebDriver\Remote\WebDriverCapabilityType::BROWSER_NAME =&gt; $browser_type);
                     $driver = \Facebook\WebDriver\Remote\RemoteWebDriver::create($host, $capabilities);
          $driver-&gt;get($setconnection);
          $driver-&gt;get($setavail);
          $cookie = $driver-&gt;manage()-&gt;getCookies();
          $driver-&gt;close();
  
          $cookie = reset($cookie);
  
          $cookievalue = $cookie['value'];
  </code></pre>
  
  <p>Basically, I am trying to get cookievalue from this request, anyone, have some solution, please !!</p>