title: How do I download a file using java Selenium WebDriver?
body: <p>I'm using Selenium 2.21.0 with Java 6.  How do I use the Selenium WebDriver API to download a file on a web page?  That is, there is a link that causes the download of an Excel file to start.  I would like to know how to initiate that download, determine when its finished, and then figure out where the file got downloaded to on my local system.</p>