title: Control windows or file explorer to upload files in protractor
body: <p>I am trying to upload files in my protractor E2E test. Googling a bit I ended up using robotJS. 
  Unfortunately , the installation of <code>robotJS</code> is failing. 
  Is there any other way to get my files uploaded. </p>
  
  <p>Steps: </p>
  
  <ol>
  <li>Click on upload button</li>
  <li>File explorer opens. </li>
  <li>Enter the path</li>
  <li>click on upload. </li>
  </ol>
  
  <p>I tried using FileDetector and below is the code:</p>
  
  <pre><code>let fileToUpload = 'testfolder';
  let absolutePath = path.resolve(__dirname, fileToUpload);
  await browser.setFileDetector(new remote.FileDetector());
  $('input[type="file"]').sendKeys(absolutePath);
  </code></pre>
  
  <p>This doesn't really pass or search for the absolute path. 
  What is missing here ?</p>