I am new to Selenium WebDriver.
I need to download the file, if we click on download, after downloading it it will ask confirmation to open or save file. It should save without asking confirmation.
Please help me how to handle this.
If your goal is to bypass the confirmation for testing purposes, I know this can be done for Chrome:
If you run your tests on Chrome you should be able to verify your download process with a more pure Selenium approach (not having to dabble in any black magic to get script away that dialog)