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.
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
Post a Comment