title: Setting default file upload folder (directory) in robot framework
body: <p>We've a web application wherein it uploads attachments ( Files - JPG , PDF or any other ).
  Right now to upload these files, the files need to be kept in folder  : <strong>C:\Users\username</strong> so that the chrome browser automatically uploads them during test automation execution.</p>
  
  <p>We want to upload JPG files from a custom and generic folder so that upload is independent of the path.
  Is there any way wherein we specify the chrome to choose a specific folder to upload these files  ( ex : To upload files from folder  <strong>C:\TestData</strong> ) independent of the user logged in ?</p>
  
  <p><strong>So my issue is how to set the default file upload path in Chrome Browser so that all the files can be picked-up for uploading from that default directory (folder).</strong></p>
  
  <p><strong>My Attempt:</strong></p>
  
  <ol>
  <li>Launched the chrome browser in automation script.</li>
  <li>In Chrome : "Setting" then searched for "download"</li>
  <li>Then changed the "Downloads" location to the generic path.</li>
  </ol>
  
  <p>After the relaunch of the chrome browser through script, still it continued to refer to   <strong>C:\Users\username</strong> rather than custom path specified in chrome settings.</p>
  
  <p><strong>Screenshot attached below for reference.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/tuLky.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tuLky.jpg" alt="enter image description here"></a></p>