title: Unable to upload image/file in python using selenium webdriver
body: <p>I'm unable to upload and save an image. </p>
  
  <p>The following is the piece of code that facilitates file upload using the UI. At first, only the upload button is visible and once an image is selected from the uploader the save button is visible.  </p>
  
  <pre><code> &lt;td colspan="1" class="actions"&gt;
                  &lt;input type="button" class="button" name="logo" id="logo-f-upload" value="Upload Image"/&gt;
                  &lt;input type="file" id="logo-upload" accept="image/*" name="logo-upload" style="display:none" /&gt;
                  &lt;input type="submit" value="click to save" name="submit_logo_now" class="main submit_dm logo-save-focused" style="display: none"/&gt;
                  &lt;/br&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>I tried <code>driver.find_element_by_id("logo-f-upload").send_keys(os.getcwd()+"/image_test.png")</code></p>
  
  <p>and also</p>
  
  <pre><code>driver.find_element_by_id("logo-upload").send_keys(os.getcwd()+"/image_test.png")
  </code></pre>
  
  <p>but it doesn't throw any error at this stage but on the next where it says "element is not visible ..." ie. the save button. On the UI, when simulating this, the file uploader doesn't open but the file_upload button value changes to the path of the image and then breaks. </p>