需要帮助在Eclipse中设置Selenium for Safari

时间:2015-05-10 21:55:44

标签: java eclipse macos selenium safari

我安装并启用了safari扩展程序。 我在构建路径中有以下库:

selenium-java-2.45.0jar
selenium-server-standalone-2.45.0.jar

有了这个,我尝试创建一个SafariDriver并获得以下堆栈跟踪:

Exception in thread "main" java.lang.ExceptionInInitializerError
    at AI2048.main(AI2048.java:7)
Caused by: org.openqa.selenium.remote.UnreachableBrowserException: Failed to connect to SafariDriver after 10229 ms
Build info: version: '2.45.0', revision: '32a636c', time: '2015-03-05 22:01:35'
System info: host: 'justin-macbook-pro.local', ip: '10.0.0.6', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.10.2', java.version: '1.8.0_25'
Driver info: driver.version: SafariDriver
    at org.openqa.selenium.safari.SafariDriverCommandExecutor.start(SafariDriverCommandExecutor.java:121)
    at org.openqa.selenium.safari.SafariDriver.startClient(SafariDriver.java:72)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:114)
    at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:139)
    at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:58)
    at org.openqa.selenium.safari.SafariDriver.<init>(SafariDriver.java:42)
    at ...

我不确定我错过了什么,有人可以帮助我吗?

0 个答案:

没有答案