title: Getting WebDriver working with Firefox
body: <p>Using Laravel 5+ with Vagrant.</p>
  
  <p>I have selenium running using:</p>
  
  <pre><code>java -jar vendor/se/selenium-server-standalone/bin/selenium-server-standalone.jar -Dwebdriver.firefox.bin="/usr/bin/firefox"
  </code></pre>
  
  <p>using a headless display:</p>
  
  <pre><code>sudo Xvfb :10 -ac
  </code></pre>
  
  <p>However when i run codeception:</p>
  
  <pre><code> ./vendor/bin/codecept run selenium --steps
  </code></pre>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>[Facebook\WebDriver\Exception\UnknownServerException] Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output:
    Error: GDK_BACKEND does not match available displays</p>
  </blockquote>
  
  <p>I am confused with server and ports that i should be using.
  Currently i access site through <code>http://localhost:8000</code>
  however that is outside vagrant. </p>
  
  <p>I observe <code>$url = 'http://localhost:4444/wd/hub'</code>, inside <code>api\vendor\facebook\webdriver\lib\Remote\RemoteWebDriver.php</code></p>
  
  <p>As the error outputs :</p>
  
  <blockquote>
    <p>127.0.0.1 on port 7055.</p>
  </blockquote>