title: How to upload a file in Selenium WebDriver with no 'input' element
body: <p>I have a HTML page with button named "Upload" and id: <code>btn-import-questions</code>. The element:</p>
  
  <pre><code>&lt;button class="btn btn-success btn-sm col-lg-11" id="btn-import-questions" data-ts-file-selector="questions-import-init"&gt;  Upload&amp;nbsp;&lt;i class="fa fa-upload"&gt;&lt;/i&gt;&lt;/button&gt;
  </code></pre>
  
  <p>I tried a Selenium Java code like this:</p>
  
  <p><code>driver.findElement(By.id("btn-import-questions")).sendkeys("C:/path/to/file.xlsx");</code></p>
  
  <p>But since this is an upload button and not an input-type element, the above code is not working.</p>