類似ケース閲覧済
https://teratail.com/questions/1056
geckoDriver(FireFoxDriver)を用いて
FireFoxでzipファイルをダウンロードする際
ポップアップを無くし、特定ディレクトリに保存したいです。
lang
1 FirefoxOptions options = new FirefoxOptions(); 2 FirefoxProfile profile = new FirefoxProfile(); 3 profile.setPreference("browser.download.folderList", 0); 4 profile.setPreference("browser.download.useDownloadDir", true); 5 profile.setPreference("browser.helperApps.neverAsk.saveToDisk", "application/zip"); 6 options.setProfile(profile); 7 WebDriver driver = new FirefoxDriver(options);
WebDriverに上記の設定を行ったのですが、ポップアップが発生します。
まだ不足しているPreference情報があるのか
既存の設定値に不備があるのか。。
ご確認お願いできればと思います。
よろしくお願い致します。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。