-
问题:
-
出现java.lang.NoClassDefFoundError:com/google/common/base/Charsets
at com.thoughtworks.selenium.HttpCommandProcessor.getOutputStreamWriter(HttpCommandProcessor.java:146)
atcom.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:173)
-
解决:
把下载的包里面的libs也导入工程
E:\Tools\Exist\6\selenium\selenium-2.41.0\libs
-
问题:
java.lang.NoClassDefFoundError:org/hamcrest/SelfDescribing
解决:
java -classpath E:\workspace\testECWeb\bin;E:\workspace\testECWeb\bin\selenium-java-2.41.0.jar;E:\workspace\testECWeb\bin\junit.jar;E:\workspace\testECWeb\bin\org.hamcrest.core_1.3.0.v201303031735.jar org.junit.runner.JUnitCoretestECWeb.testECWebPage
-
问题
java.lang.NoClassDefFoundError:com/google/common/base/Charsets
解决:
C:\Tools\software\selenium\selenium-2.41.0\libs\guava-15.0.jar
-
问题:
org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms.
解决:
2.53.0 --> 46