title: How to use send keys when input='file' doesn't exist using Ruby and Selenium
body: <p>I'm working on a web scraper with Ruby and Selenium that will take a CSV file and import it into Google Sheets. </p>
  
  <p>Everything is fine until I need to target the "select a file from your device" input and upload the file using send keys. Normally I see an <code>input='file'</code> tag and use that, however I'm no longer seeing it.</p>
  
  <p>What I would do is </p>
  
  <pre><code>driver.find_element(xpath: '//*[@type="file"]').send_keys("#{Dir.pwd}/my_file.csv")
  </code></pre>
  
  <p>but this no longer works as there's no <code>type='file'</code>.</p>
  
  <p>This is what I see when I inspect:</p>
  
  <pre><code>&lt;div role="button" class="a-b-c d-u d-u-F" tabindex="0" style="user-select: none;"&gt;Select a file from your device&lt;/div&gt;
  </code></pre>
  
  <p>Is there a different way I could do this without targeting an input with a type of "file"?</p>