CeliaのMarionetteとgeckodriver 0.11.1とFirefox 50でSelenium WebDriver 3.0.1.0を使用しています。私はこのObsoleteAttributeによって動機付けられたFirefoxOptions
を使用しました:FirefoxProfile設定が無視されています
FirefoxDriverはFirefoxBinaryオブジェクトで構成しないでください。 代わりにFirefoxOptionsを使用してください。
コードは次のとおりです。
FirefoxOptions fo = new FirefoxOptions();
firefoxProfile = new FirefoxProfile();
firefoxProfile.SetPreference("browser.download.folderList", 2);
firefoxProfile.SetPreference("browser.download.dir", DOWNLOAD_FOLDER);
firefoxProfile.SetPreference("browser.helperApps.neverAsk.saveToDisk", "text/csv");
firefoxProfile.SetPreference("browser.startup.homepage_override.mstone", "ignore");
firefoxProfile.SetPreference("trustAllSSLCertificates", true);
firefoxProfile.AcceptUntrustedCertificates = true;
fo.Profile = firefoxProfile;
driver = new FirefoxDriver(fo);
それはすべてで使用されていない指定firefoxProfile
のように、SSL証明書エラーが表示され、dowloadダイアログは、プロファイルの設定にかかわらず表示されている、私には見えます。私はthis bugのためにSSL証明書のエラーを無視しないと思っていましたが、すべてのプロファイル設定が無視されているようです。
プロファイルの設定を有効にするにはどうすればよいですか? (ダウンロードダイアログは表示されず、SSLエラーは無視されます)
Marionetteに切り替える前に、そのコードは動作しましたが、Marionetteは使用する準備ができていませんか?
私はIceDragonとSelenium 2.53に戻って、すべてが再び動作しています。 –