how to handle confirmation when clickinh on down load file selenium using python



  • 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: Open chrome://settings/ in the Chrome browser Select the "Show advanced settings..." link Scroll down to the "Downloads" settings Uncheck the box labeled "Ask where to save each file before downloading" 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)



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2