2016-09-12 33 views
0

FirefoxでSelenium Webdriver(Java)スクリプトを実行すると、Firefox + Windows 10ウェルカム画面が開き、スクリプトが失敗します。私は、次の同様の記事Selenium - FirefoxDriverがテストURLの代わりにFirefox + Windows10ウェルカムページを開く

Link1Link2

を見て、すべての言及のものが、その役に立たないを実装しています。 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

答えて

0

URLを間違えました。

String url = "google.com/images"; 

が、私は今、その細かい作業

String url = "http://google.com/images"; 

にそれを変更: これは私のURLでした。

関連する問題