title: upload file by Chrome File Upload dialog using selenium webdriver in headless mode in python
body: <p>I'm trying to use the selenium chrome driver in headless mode to upload a file to a web, but the web doesn't support the input tags to use <code>send_key</code>, it opens a <code>Chrome</code> File Upload dialog. I try to use pyautogui to handle keyboard and type the file path in my computer to the dialog, but it just works without headless mode.</p>
  
  <p><strong>Is there any idea to solve this upload problem?</strong> </p>