title: Upload file with hidden input with Selenium WebDriver Python
body: <p>Html:</p>
  
  <pre><code>&lt;div id="js-cert-file" class="form-group"&gt;
  &lt;button id="js-ob-browse-n-upload" class="btn btn-ob browse-and-upload-onboarding-ssl-button" style=""&gt; BROWSE &amp; UPLOAD &lt;/button&gt;
  &lt;input id="js-cert-file" class="hidden btn btn-ob" type="file" accept=".p12, .pem, .pfx" name="file"&gt;
  &lt;input id="file-name" type="text" disabled="" value="File Name" style="display:none"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>I have tried uploading the document using the xpath and css selector but not able to do it since the input is hidden. I have spend few days banging my head on this and still not able to figure it out so thought it was time to ask the experts, please help!</p>
  
  <p>Issue is that, I want to upload the file without clicking the "Browse and Upload" Button, but like I said am not able to do it since the input is hidden.</p>
  
  <p>Here the my python code:</p>
  
  <pre><code>BrowseAndUpload = driver.find_element_by_xpath("/html/body/div[3]/div/div[2]/div/div/div[1]/div[1]/input[1]")
  clickBrowseAndUpload.send_keys('file full path')
  </code></pre>