Comment #5 on issue 7174 by
im.vikra...@gmail.com: Firefox downloading file
without window
https://code.google.com/p/selenium/issues/detail?id=7174
Even Im facing the similar issue mentioned.When I click on download
provided on my website.It opens a dialog box.Please if anyone knows the fix
for this.Let me know.
Below are the prefernces I have used.
ProfilesIni myProfile=new ProfilesIni();
FirefoxProfile profile=myProfile.getProfile("FirefoxVikram");
profile.setAcceptUntrustedCertificates(true);
profile.setPreference("browser.download.folderList", 2);
profile.setPreference("browser.download.manager.showWhenStarting", false);
profile.setPreference("browser.download.dir", "C:\\Users\\L069570\\Vikram\\Xpath");
profile.setPreference("browser.helperApps.neverAsk.openFile","text/csv,
application/pdf,application/octet-stream");
profile.setPreference("browser.helperApps.alwaysAsk.force", false);
profile.setPreference("browser.download.manager.alertOnEXEOpen", false);
profile.setPreference("browser.download.manager.focusWhenStarting",
false);
profile.setPreference("browser.download.manager.useWindow", false);
profile.setPreference("browser.download.manager.showAlertOnComplete",
false);
profile.setPreference("browser.download.manager.closeWhenDone", true);
driver =new FirefoxDriver(profile);