0
FirefoxでSelenium Webdriver(Java)スクリプトを実行すると、Firefox + Windows 10ウェルカム画面が開き、スクリプトが失敗します。私は、次の同様の記事Selenium - FirefoxDriverがテストURLの代わりにFirefox + Windows10ウェルカムページを開く
Link1 とLink2
を見て、すべての言及のものが、その役に立たないを実装しています。 PFB私が試してみましたコード:
FirefoxProfile profile = new FirefoxProfile();
profile.setPreference("browser.startup.homepage_override.mstone", "ignore");
profile.setPreference("startup.homepage_welcome_url", "about:blank");
profile.setPreference("startup.homepage_welcome_url.additional","about:blank");
profile.setPreference("browser.startup.homepage","about:blank");
profile.setPreference("xpinstall.signatures.required", false);
profile.setPreference("toolkit.telemetry.reportingpolicy.firstRun", false);
System.setProperty("webdriver.gecko.driver", "F:\\Selenium\\geckodriver.exe");
driver = new FirefoxDriver(profile);
driver.get(url);
バージョンが
Firefoxの使用 - 48.0.2
セレン - V3.0.0 - ベータ3を
Eclipseの火星
のJava 1.8