title: Get console.log from Selenium using php webdriver
body: <p>I'm trying to run integration tests against some of our AMP pages to see if they validate. AMP runs validation if you append #development=1 to a URL and puts the results in console.log. I need to be able to read console.log to check this.</p>
  
  <p>This is what I have so far:</p>
  
  <pre><code>$caps = DesiredCapabilities::firefox();
  $caps-&gt;setCapability('loggingPrefs', array('browser'=&gt;'ALL'));
  
  //connect to selenium
  $webdriver = RemoteWebDriver::create('http://127.0.0.1:4444/wd/hub', $caps);
  
  $webdriver-&gt;get('https://www.example.com/amp/page.html#development=1');
  sleep(10);
  $logs = $webdriver-&gt;manage()-&gt;getLog('browser');
  
  var_dump($logs);
  </code></pre>
  
  <p>Using Facebook's webdriver for PHP. I can get the logs back, but it doesn't seem to include anything from console.log. How can I capture this data?</p>