title: Selenium Webdriver : How to upload file using his relative path (javascript)
body: <p>I'm using <em>selenium webdriver with node.js (javascript ) under chrome.</em></p>
  
  <p>In some test , i have to upload a file using his relative path (my file to upload is in the same directory as the test file)</p>
  
  <pre><code>var fileInput = driver.findElement(webdriver.By.xpath('//*[@id="j_idt69:j_idt70_input"]'));
  fileInput.sendKeys('./file.xml');
  </code></pre>
  
  <p>Strangely my test fails and i catch this error :</p>
  
  <pre><code>My error handler... WebDriverError: unknown error: path is not absolute: 
  </code></pre>
  
  <p>In fact <strong>am using a relative path</strong> because my test is intented to be used in differents locations (VMs , jenkins , pc..).
  and the absolute path isn't usefull for me.</p>
  
  <p><strong>Suggestions ??</strong></p>