Google Chromeを用いたSeleniumのテストをWebDriverを用いて行いたいです。
ですが、以下のエラーが出てうまくいきません。
どのように修正すればよいのでしょうか?
lang
1WebDriver driver = new ChromeDriver(); 2driver.get("http://example.com");
//以下、エラー
Exception in thread "main" java.lang.IllegalStateException: The path to the driver executable must be set by the webdriver.chrome.driver system property; for more information, see http://code.google.com/p/selenium/wiki/ChromeDriver. The latest version can be downloaded from http://chromedriver.storage.googleapis.com/index.html
at com.google.common.base.Preconditions.checkState(Preconditions.java:177)
at org.openqa.selenium.remote.service.DriverService.findExecutable(DriverService.java:105)
at org.openqa.selenium.chrome.ChromeDriverService.createDefaultService(ChromeDriverService.java:89)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:117)
at selenium.ngCase.main(ngCase.java:11)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2014/09/16 05:00