title: Selenium InvalidArgumentException: Message: File not found
body: <ul>
  <li>Gecko Driver Version: 0.20</li>
  <li>Platform: Windows</li>
  <li>Firefox: Nightly 61.0a1 and 60</li>
  <li>Selenium: 3.8.1</li>
  </ul>
  
  <p>When I try to send the sendkeys command to upload a file I get this error:</p>
  
  <blockquote>
    <p>selenium.common.exceptions.InvalidArgumentException: Message: File not found: C:/file.abc</p>
  </blockquote>
  
  <p>On chrome it works great, I've seen that this problem has been found by other users in the old versions of firefox and that it has been fixed, but to me the problem persists.</p>
  
  <p>This is the code:</p>
  
  <pre><code>site = "https://www.sendspace.com/"
  driver = webdriver.Firefox()
  driver.get(site)
  driver.find_element_by_xpath("//input[@type='file']").send_keys('C:/file.abc')
  </code></pre>