title: Print to default printer in chrome headless mode
body: <p>I'm running chrome in headless mode using selenium for python.
  <code>--kiosk-printing</code> argument is added to skip print preview
  Everything is working fine except for printing.</p>
  <p>This is how I start chrome</p>
  <pre><code>from selenium import webdriver
  
  chrome_options = Options()
  chrome_options.add_argument('--headless')
  chrome_options.add_argument('--disable-gpu')
  chrome_options.add_argument('--window-size=1280,720')
  chrome_options.add_argument('--kiosk-printing')
  driver = webdriver.Chrome(chrome_options=chrome_options)
  </code></pre>
  <p>Then I load my html to chrome</p>
  <pre><code>driver.get(&quot;https://localhost:5007/test_print.html&quot;)
  </code></pre>
  <p>The html has <code>window.print()</code> method</p>
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Test Printing&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;h1&gt;Test Test Test&lt;/h1&gt;
      &lt;/body&gt;
      &lt;script&gt;
          window.print();
      &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  <p>This works when I remove headless option and keep selenium in the screen. <strong>So my question is 'IS THERE ANY WAY TO PRINT A DOCUMENT IN CHROME HEADLESS MODE?'</strong></p>
  <p>My purpose is to print a bill in a kiosk. My main webapp is on chrome kiosk mode. First I just loaded the bill to a hidden iframe but it shows the print preview for a less than one second which distracts user from the app. I want to print my bill 100% silently in a kiosk.</p>