title: Selenium - Java: Struggling to select a particular element
body: <p>I'm currently creating a few scripts for a web application. I'm currently stuck on picking up a particular button. I've spend a few hours on it and still no luck. Any advice or guidance would be much appreciated. I've added the source code below as well as an image.</p>
  
  <p>My current unsuccessful attempts: </p>
  
  <pre><code>chromeDriver.findElement(By.linkText("uploadfile")).click();
  chromeDriver.findElement(By.xpath("html/body/div[9]/input")).click();
  chromeDriver.findElement(By.xpath("//iput[@name='uploadfile']")).click
  </code></pre>
  
  <p> </p>
  
  <pre><code>div style="display: block; position: absolute; overflow: hidden; margin: 0px; padding: 0px; opacity: 0; direction: ltr; z-index: 16777270; left: 835px; top: 313px; width: 232px; height: 46px; visibility: hidden;"&gt;
  &lt;input name="uploadfile" style="position: absolute; right: 0px; margin: 0px; padding: 0px; font-size: 480px; font-family: sans-serif; cursor: pointer; height: 100%; z-index: 16777270;" type="file"&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/XpWiP.png" rel="nofollow"><img src="https://i.stack.imgur.com/XpWiP.png" alt="enter image description here"></a></p>