how to download in selenium code example

Example 1: how to download in selenium

Selenium itself cannot verify file downloads, can click on download link 
but can't go outside the browser and open the downloaded file 
Other tools need to be used for that Robot and AutoIT

Example 2: downloading file in selenium

Selenium itself cannot verify file downloads, can click on download link
but can't go outside the browser and open the downloaded file 
Other tools need to be used for that Robot and AutoIT

Tags:

Java Example