FirefoxProfile profile = new FirefoxProfile(); // profile.SetPreference("browser.helperApps.neverAsk.saveToDisk", " text/plain, application/octet-stream doc xls pdf txt"); profile.SetPreference("browser.download.manager.alertOnEXEOpen", false); profile.SetPreference("browser.helperApps.neverAsk.saveToDisk", "application/csv, text/csv, text/plain,application/octet-stream doc xls pdf txt"); profile.SetPreference("browser.download.manager.focusWhenStarting", false); profile.SetPreference("browser.download.useDownloadDir", true); profile.SetPreference("browser.helperApps.alwaysAsk.force", false); profile.SetPreference("browser.download.manager.closeWhenDone", true); profile.SetPreference("browser.download.manager.showAlertOnComplete", false); profile.SetPreference("browser.download.manager.useWindow", false); profile.SetPreference("services.sync.prefs.sync.browser.download.manager.showWhenStarting", false); profile.SetPreference("pdfjs.disabled", true); _driverInstance = new FirefoxDriver(profile);
FirefoxProfile profile = new FirefoxProfile(); profile.SetPreference("network.proxy.type", "1"); profile.SetPreference("network.proxy.http", "<proxy_ip>"); profile.SetPreference("network.proxy.http_port", "<proxy_port>"); FirefoxDriver = new FirefoxDriver(profile);
FirefoxProfile profile = new FirefoxProfile() {AcceptUntrustedCertificates = true}; profile.SetPreference("webdriver_assume_untrusted_issuer", false); Driver = new FirefoxDriver(profile); Driver.Manage().Window.Maximize();
FirefoxProfile profile = new FirefoxProfile(); profile.SetPreference("webdriver.load.strategy", "unstable");