Czy ktoś może mi powiedzieć, jak wyłączyć wtyczki dla mojego profilu firefox klienta za pomocą Java? Znalazłem kilka witryn pokazujących, aby dodać dodatki, ale nic o wyłączaniu wtyczek.Selen wyłącza wtyczki w profilu firefox
Mój profil Firefox:
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setAcceptUntrustedCertificates(true);
firefoxProfile.setAssumeUntrustedCertificateIssuer(false);
firefoxProfile.setPreference("browser.download.folderList",2);
firefoxProfile.setPreference("browser.download.manager.showWhenStarting",false);
firefoxProfile.setPreference("browser.download.dir",reportFolder);
firefoxProfile.setPreference("browser.helperApps.neverAsk.saveToDisk","text/csv,application/pdf,application/csv,application/vnd.ms-excel");
firefoxProfile.setPreference("browser.download.manager.showAlertOnComplete",false); firefoxProfile.setPreference("browser.download.manager.showAlertOnComplete",false);
firefoxProfile.setPreference("browser.download.manager.showWhenStartinge",false);
firefoxProfile.setPreference("browser.download.panel.shown",false);
firefoxProfile.setPreference("browser.download.useToolkitUI",true);
firefoxProfile.setPreference("pdfjs.disabled", true);
firefoxProfile.setPreference("pdfjs.firstRun", false);
driver = new FirefoxDriver(firefoxProfile);
Problemem jest domyślnie ten ma kilka wtyczek włączone. Adobe Acrobat, google update, java, microsoft office, flash, shockwave dla reżysera i silverlight.
Muszę wyłączyć niektóre z nich, ponieważ zepsuły moje testy.
Hi Farlan Mam zaktualizowane pytanie z mojego kodu. Niestety utworzony pusty profil ma włączone niektóre wtyczki. –
możesz określić, które zakłócają testy? – Farlan
Acrobat to ten, który wydaje się być przyczyną większości z nich –