How to disable 'Download Complete' notification using selenium Webdriver -


i using selenium automate functionality on webpage. downloading files using selenium. download completes, can see pop notification on web page download complete.

enter image description here

kindly suggest using selenium, can remove pop notification?

i setting following firefox profile:

firefoxprofile firefoxprofile = new firefoxprofile();     firefoxprofile.setpreference("browser.download.folderlist", 2);     firefoxprofile.setpreference("browser.download.manager.showwhenstarting", false);     firefoxprofile.setpreference("browser.download.manager.usewindow", false);     firefoxprofile.setpreference("browser.download.manager.showalertoncomplete", false);     firefoxprofile.setpreference("browser.download.manager.closewhendone", true);     firefoxprofile.setpreference("browser.download.dir", downlodelocation);  firefoxprofile.setpreference("browser.helperapps.neverask.openfile",         "application/bin,application/binary,text/comma-separated-values,application/octet-stream,text/csv,application/x-msexcel,application/excel,application/x-excel,application/vnd.ms-excel,text/html,text/plain,application/csv,text/anytext");  firefoxprofile.setpreference("browser.helperapps.neverask.savetodisk",      "application/bin,application/binary,text/comma-separated-values,application/octet-stream,text/csv,application/x-msexcel,application/excel,application/x-excel,application/vnd.ms-excel,text/html,text/plain,application/csv,text/anytext");    

any appreciable.

thanks

you can via browser settings

type about:config in address bar. search browser.download.animatenotifications or browser.download.manager.showalertoncomplete , set them false right click -> toggle.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -