私はヘッドレステストのためのSelenium WebDriver(a.k.a. Selenium 2)自動化テスト用の簡単なmavenプロジェクトを作成していました。 pom.xmlに他の依存関係を次のように私はPhantomJSドライバーの依存関係を追加しました:NoClassDefFoundErrorを修正するには:CircularOutputStreamエラー?
<dependency>
<groupId>com.github.detro</groupId>
<artifactId>phantomjsdriver</artifactId>
<version>1.2.0</version>
</dependency>
しかし、それはエラーを取得している:ただのpom.xmlからPhantomJS依存性を取り除く
java.lang.NoClassDefFoundError: org/openqa/selenium/io/CircularOutputStream
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:60)
at org.openqa.selenium.firefox.FirefoxBinary.<init>(FirefoxBinary.java:56)
at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:120)
at jp.co.skygate.home.HomePageLogin.setUp(HomePageLogin.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
は、問題を解決し、それは正常に実行されます。 誰かが問題を見つけるのを助けることができますか?
ありがとうございます。
それで、バージョンの互換性の問題でした。 phantomjsdriver 1.3.0とselenium-remote-driver-2.53.0を使用することができます –