1
我得到確切同樣的錯誤,這個問題是關係到NoClassDefFoundError in Java: com/google/common/base/FunctionNoClassDefFoundError的在Java中:使用maven
,但我沒有手動添加罐子COM /谷歌/普通/基/功能的進口,我使用Maven的替代。
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>2.48.2</version>
</dependency>
在老帖子中,有人用maven建議加入另一個依賴番石榴15.0。我試過了,但沒有工作。 有沒有辦法解決它只使用maven而無需手動添加selenium-server-standalone-version.jar?