2017-02-22 1 views
0

셀레늄을 사용했지만 다음과 같은 오류가있는 샘플 웹 사이트에 연결하려고합니다. 당신이 항아리의가 transformValues 방법을 포함 누락 어떤 이유로 java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.transformValues셀레늄을 사용하여 모질라 파이어 폭스 연결하기

:

Feb 22, 2017 1:19:46 PM org.openqa.selenium.remote.ProtocolHandshake createSession 
INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end 
Exception in thread "main" java.lang.NoSuchMethodError: com.google.common.collect.Multimaps.transformValues(Lcom/google/common/collect/ListMultimap;Lcom/google/common/base/Function;)Lcom/google/common/collect/ListMultimap; 
    at com.google.common.net.MediaType.toString(MediaType.java:708) 
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:95) 
    at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:55) 
    at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:141) 
    at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:82) 
    at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:597) 
    at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:242) 
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:129) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:231) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:219) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:214) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:210) 
    at org.openqa.selenium.firefox.FirefoxDriver.<init>(FirefoxDriver.java:123) 
    at com.mozilla.service.ConncetMozilla.main(ConncetMozilla.java:11) 
+2

더 나은 당신은 예외를 throw 코드를 게시 할 수 있습니다. –

+2

게시물 읽기. http://stackoverflow.com/help/how-to-ask –

답변

관련 문제