You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.
Environment:
Mac OS X 10.7.5,
Safari Version 6.0.2 (7536.26.17)
selenium-java-2.31.0.jar,
java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02-445-11M4107)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01-445, mixed mode)
Code:
private WebDriver createSafariDriver() {
SafariDriver dvr = new SafariDriver(); //<--Exception occurs here (WebScriptRunner.java:509)
return dvr;
}
Result: Browser starts but SeleniumDriver throws exception:
Feb 28, 2013 1:07:29 PM org.openqa.selenium.safari.SafariDriverServer start
INFO: Server started on port 18715
(java.lang.NoSuchMethodError: com.google.common.base.Platform.systemNanoTime()J)
java.lang.NoSuchMethodError: com.google.common.base.Platform.systemNanoTime()J
at com.google.common.base.Ticker$1.read(Ticker.java:60)
at com.google.common.base.Stopwatch.start(Stopwatch.java:114)
at org.openqa.selenium.safari.SafariDriverCommandExecutor.start(SafariDriverCommandExecutor.java:101)
at org.openqa.selenium.safari.SafariDriver.startClient(SafariDriver.java:71)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:110)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:115)
at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:57)
at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:52)
at com.tsys.seleniumrunner.WebScriptRunner.createSafariDriver(WebScriptRunner.java:509)
etc...
Browser instance remains with this on page:
SafariDriver Client
[ 0.009s] [safaridriver.client] Requesting connection at ws://localhost:4063...
[ 0.040s] [safaridriver.client] Request acknowledged; connecting...
Any ideas?
Reported by etfloyd98 on 2013-02-28 20:04:18
The text was updated successfully, but these errors were encountered:
That was it! Indirect jar conflict: the project build path had a dependency on another
Eclipse project which included an older version of Guava in its classpath. When I removed
the dependency, the error went away. Thank you!
Originally reported on Google Code with ID 5260
Reported by
etfloyd98
on 2013-02-28 20:04:18The text was updated successfully, but these errors were encountered: