title: Webscraping Symfony/Panther: Can't get HTML
body: <p>I want to scrape a site with the symfony panther package within a Laravel application. According to the documentation <a href="https://github.com/symfony/panther#a-polymorphic-feline" rel="nofollow noreferrer">https://github.com/symfony/panther#a-polymorphic-feline</a> I cannot use the <code>HttpBrowser</code> nor the <code>HttpClient</code> classes because they do not support JS.</p>
  
  <p>Therefore I try to use the ChromClient which uses a local chrome executable and a chromedriver binary shipped with the panther package.</p>
  
  <pre class="lang-php prettyprint-override"><code>$client = Client::createChromeClient();
  $crawler = $client-&gt;request('GET', 'http://example.com');
  dd($crawler-&gt;html());
  </code></pre>
  
  <p>Unfortunately, I only receive the empty default chrome page as HTML:  </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;&lt;/body&gt;&lt;/html&gt;
  </code></pre>
  
  <p>Every approach to do something else with the <code>$client</code> or the <code>$crawler</code>-instance leads to an error "no nodes available".</p>
  
  <p>Additionally, I tried the basic example from the documentation <a href="https://github.com/symfony/panther#basic-usage" rel="nofollow noreferrer">https://github.com/symfony/panther#basic-usage</a>  --> same result.</p>
  
  <p>I'm using ubuntu 18.04 Server under WSL on Windows and installed the <code>google-chrome-stable</code> deb-package. This seemed to work because after the installation the error "the binary was not found" does not longer occur.  </p>
  
  <p>I also tried to manually use the executable of the Windows host system but this only opens an empty CMD window always reopened when closing. I have to kill the process via TaskManager.  </p>
  
  <p>Is this because the Ubuntu server does not have any x-server available?<br>
  What can I do to receive any HTML? </p>