title: How to handle windows file upload using Selenium WebDriver?
body: <p>I have seen lots of questions and solutions on File upload using Selenium WebDriver on Stack Overflow. But none of them are working for following scenario. </p>
  
  <p>Someone has given a solution as following </p>
  
  <pre><code>// assuming driver is a healthy WebDriver instance
  WebElement fileInput = driver.findElement(By.name("uploadfile"));
  fileInput.sendKeys("C:/path/to/file.jpg");
  </code></pre>
  
  <p>But still I can't find window handle. How can I work on that?</p>
  
  <p><img src="https://i.stack.imgur.com/cKpXZ.png" alt="Screenshot"></p>
  
  <p>I am looking for a solution for the scenario above.</p>
  
  <p>Please check this on any of the following websites.</p>
  
  <pre><code>http://www.uploadify.com/demos/
  http://www.zamzar.com/
  </code></pre>