title: How to click on <input type=file> across browsers using Selenium Webdriver?
body: <p>I'm working on dealing with a file-chooser dialog using Selenium 2 - WebDriver. Believe it or not, my problem is NOT dealing with the OS-native file-chooser. That part I can handle!</p>
  
  <p>The problem is getting Selenium to properly click on the "Choose File" button. Since the original source html is simply <code>&lt;input type='file'&gt;</code>, the browser determines how to render it as a field and a button. As a result, the placement and naming of the button changes depending on browser. I've got it working in Chrome, but only because Chrome places the button on the leftmost alignment and Selenium happens to click there by default.</p>
  
  <p>Any ideas? It's not clear to me if an input of this type is truly navigable from within the DOM anyway...</p>