title: Manipulating a browsers file upload window using protractor/jasmine
body: <p>Tools I'm using: Protractor 3.3.0, Jasmine 2.4.1, Selenium Standalone Server</p>
  
  <p>As the title suggests -</p>
  
  <p>I'm creating a test that navigates to a certain page and then clicks an 'upload file' button.  This then triggers the browsers File Upload Window (the one similar to windows explorer). The issue is finding out if there's a way to manipulate that window itself using JavaScript as per Protractor/Jasmine.</p>
  
  <p>I did something similar a while back using Java, in doing so I did a: find all windows, switch to the top of the stack, keyboard input to tab into the input field, paste from clipboard, and then keyboard enter to submit it.  </p>
  
  <p>Problems I'm currently having with the above solution is that doing a find all windows only yields the current browser window and NOT the upload file window. </p>
  
  <p>I'm aware that there's a java import for javascript through npm, but i couldn't get that working right away and would rather just do something straight from Protractor/Jasmine itself than require a bunch of libraries.  If that's my only option then I'll dig a little harder.</p>
  
  <p>I also am aware that I can just inject the file path through the HTML: <code>$('input[type="file"]'.sendKeys(filePath);</code>, but since I'm simulating the users actions I'd much rather prefer to access the Upload Window and perform actions that way to get a more complete test.</p>
  
  <p>Any thoughts/suggestions would be greatly appreciated.</p>