I have used firefox WebDriver for C#selenium but when I start execution of program at that time is automatically minimize firefox browser because I used
driver.Manage().Window.Position = new Point(-2000,0);
But when my program is start downloading file at that time it pop up download window. Here, My code which I used for download file using FirefoxDriver
profile.SetPreference("browser.download.folderList", 2);
profile.SetPreference("browser.download.dir", path);
profile.SetPreference("browser.helperApps.neverAsk.saveToDisk", "application/x-msexcel,application/excel,application/x-excel,application/excel,application/x-
excel,application/excel,application/vnd.ms-excel,application/x-excel,application/x-msexcel,application/octet-stream");
profile.SetPreference("frozonValue",false);
profile.SetPreference("requestValue",false);
profile.SetPreference("browser.download.useDownloadDir",true);
profile.SetPreference("browser.helperApps.alwaysAsk.force", false);
profile.SetPreference("browser.download.manager.alertOnEXEOpen", false);
profile.SetPreference("browser.download.manager.closeWhenDone", true);
profile.SetPreference("browser.download.manager.focusWhenStarting", false);
So, how would I minimize that download window too?