title: Seleniumwire not logging all requests in chrome headless mode
body: <p>I'm trying to capture all network logs using <a href="https://pypi.org/project/selenium-wire/" rel="nofollow noreferrer">seleniumwire</a>. When chromedriver is in normal mode, it is able to capture all requests. But when it is in headless mode, it is not capturing  all requests. </p>
  
  <p>I tried adding <code>sleep(10)</code>, <code>assert driver.last_request.response.status_code == 200
  </code> but neither helped. </p>
  
  <p>Since <code>seleniumwire</code> is not that popular, I'm adding a sample guide below in the hope of getting people with knowledge of selenium to try a hand to help me fix the problem. </p>
  
  <p><strong>Working with seleniumwire</strong></p>
  
  <p>Installing seleniumwire</p>
  
  <pre><code>pip install seleniumwire
  </code></pre>
  
  <p>Sample script:</p>
  
  <pre><code>from seleniumwire import webdriver  # Import from seleniumwire
  
  # Create a new instance of the Chrome driver
  driver = webdriver.Chrome()
  
  # Go to the YouTube homepage.
  driver.get('https://www.youtube.com')
  
  # Access requests via the `requests` attribute
  for request in driver.requests:
      if request.response:
          print(
              request.path,
              request.response.status_code,
              request.response.headers['Content-Type']
          )
  </code></pre>