title: Nightmare JS will not open file dialog
body: <p>If I click the button manually, or if I run <code>.click()</code> in the console, the <em>open file</em> dialog pops up in the Electron browser, and works fine.</p>
  
  <p>However if I run it automatically by nightmare, the window pop up does not appear.</p>
  
  <p>I have tried clicking in within evaluate, giving the element an <code>id</code>, to be sure I am interacting with the element, and then clicking the <code>ID</code> with nightmare</p>
  
  <pre><code>var clickUpload = await nightmare.evaluate(function (selector) {
  
      document.querySelector(selector).id="theElement";
  
      return "Element Given ID";
  }, ".camera")
  
  
   await nightmare.wait(2000);
       nightmare.upload("#theElement","./pic.jpeg")
  nightmare.click("#theElement")
  </code></pre>