title: Selenium Chrome Headless download file
body: <p>I use headless chrome and selenium but i have problem in downloading file.
  Using options:</p>
  
  <pre><code>prefs = {"download.default_directory": dr,
           "download.prompt_for_download": False,
           "download.directory_upgrade": True,
           "safebrowsing.enabled": True
           }
  options.add_experimental_option("prefs", prefs)
  </code></pre>
  
  <p>If headless chrome not used then file download successfully but if headless works then nothing actions.
  How i can solve it?</p>