title: How to clear / reset input[type=file] after uploading a file?
body: <p>After uploading a file, it remains in the input. If a second file is uploaded, the first one is "sticking" to the input and will be uploaded again - together with the current one. How can you reset / clear the input in nightwatch.js?</p>
  
  <p>I have tried to clear the input <code>.clearValue('@fileUpload')</code> and tried to set an empty value <code>.setValue('@fileUpload', '')</code>. Unfortunately, both did not work.</p>
  
  <p>I am using page objects and this i how i upload files:</p>
  
  <pre><code>sectionMediaContent.setValue('@fileUpload', require('path').resolve(__dirname + '/../../../../etc/upload/audioMedium/01_audioMedium_MP3_L-0.02Min_B-40kBits_C-Mono_SR-22.05kHz_S-10.5KB.mp3'));
  </code></pre>
  
  <p>Used environment:</p>
  
  <pre><code>chromedriver: "76.0.1"
  nightwatch: "1.2.2"
  </code></pre>
  
  <p>I am grateful for any help and please let me know if more information is required.</p>
  
  <p>Here ist the one of the test cases:</p>
  
  <pre><code>  'Upload and check audio media files': function (browser) {
      const pageLogin = browser.page.login();
      const sectionLogin = pageLogin.section.login;
  
      const pageNodes = browser.page.nodes();
      const sectionNodesTree = pageNodes.section.tree;
  
      const pageMedia = browser.page.media();
      const sectionMediaContent = pageMedia.section.content;
  
      // Select media pool of root
      sectionNodesTree
        .nodePoolsArePresent('Root')
        .selectNode('@nodeMediaPoolOfRoot');
      sectionMediaContent.waitForElementVisible('@contentTitle', browser.globals.visibleTimeout)
  
      // Upload audio media file types
      sectionMediaContent.setValue('@fileUpload', require('path').resolve(
        __dirname + '/../../../../etc/upload/audioMedium/01_audioMedium_MP3_L-0.02Min_B-40kBits_C-Mono_SR-22.05kHz_S-10.5KB.mp3' + '\n' +
        __dirname + '/../../../../etc/upload/audioMedium/02_audioMedium_MP3_L-0.02Min_B-40kBits_C-Stereo_SR-22.05kHz_S-10.5KB.mp3'));
  
      // TODO: remove this workaround / reload page to reset input type file
      browser.pause(1000);
      browser.refresh();
      sectionNodesTree
        .waitForElementPresent('@nodeMediaPoolOfRoot')
        .selectNode('@nodeMediaPoolOfRoot');
      sectionMediaContent.waitForElementVisible('@contentTitle');
  
      // Check uploaded media file types in media table
      sectionMediaContent.checkMediumTable('@media1Row', {
        type: 'Audio',
        title: '01_audioMedium_MP3_L-0.02Min_B-40kBits_C-Mono_SR-22.05kHz_S-10.5KB',
      });
  
      sectionMediaContent.checkMediumTable('@media2Row', {
        type: 'Audio',
        title: '02_audioMedium_MP3_L-0.02Min_B-40kBits_C-Stereo_SR-22.05kHz_S-10.5KB',
      });
  
      // Check uploaded audio media file type details
      sectionMediaContent.checkMedium('@media1Row', {
        type: 'Audio',
        title: '01_audioMedium_MP3_L-0.02Min_B-40kBits_C-Mono_SR-22.05kHz_S-10.5KB',
        fileName: '01_audioMedium_MP3_L-0.02Min_B-40kBits_C-Mono_SR-22.05kHz_S-10.5KB.mp3',
        fileType: 'MP3 Audio',
        fileSize: '10,57 KB',
        audioLength: '00:02 Min.',
        audioChannels: 'Mono',
        audioSampleRate: '22,05 kHz',
        audioBitRate: '40,00 KBit/s',
      });
  
      sectionMediaContent.checkMedium('@media2Row', {
        type: 'Audio',
        title: '02_audioMedium_MP3_L-0.02Min_B-40kBits_C-Stereo_SR-22.05kHz_S-10.5KB',
        fileName: '02_audioMedium_MP3_L-0.02Min_B-40kBits_C-Stereo_SR-22.05kHz_S-10.5KB.mp3',
        fileType: 'MP3 Audio',
        fileSize: '10,57 KB',
        audioLength: '00:02 Min.',
        audioChannels: 'Stereo',
        audioSampleRate: '22,05 kHz',
        audioBitRate: '40,00 KBit/s',
      });
    },
  </code></pre>
  
  <p>And here is a snippet out of the page object</p>
  
  <pre><code>        // Media file upload
          fileUpload: 'input[type=file]',
  </code></pre>