title: upload files with selenium webdriver python
body: <p>I'd like to use webdriver to pick a file but following other answers they do not work. They say just give the button a filepath, and this doesn't do anything. The upload looks like this after clicking the button:</p>
  
  <p><a href="https://i.stack.imgur.com/HACSg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HACSg.png" alt="enter image description here"></a></p>
  
  <p>This is what others say to do but doesn't work:</p>
  
  <pre><code>element = driver.find_element_by_name("file")
  element.send_keys("/home/pavel/Desktop/949IH3GNHAo.jpg")
  </code></pre>
  
  <p>How can I submit files once I'm in a webdriver instance? Thank you</p>