Selenium独立服务器jar文件挂起

时间:2012-10-16 12:46:34

标签: java selenium

我遇到运行Selenium独立服务器的问题 - 它只是在加载中途挂起。我已经尝试了几个不同版本的独立服务器,但同样的问题出现了。从命令行我运行...

java -jar selenium-server-standalone-2.25.0.jar

然后回来......

Oct 16, 2012 8:29:34 PM org.openqa.grid.selenium.GridLauncher main
INFO: Launching a standalone server
20:29:40.190 INFO - Java: Apple Inc. 20.10-b01-428
20:29:40.193 INFO - OS: Mac OS X 10.7.4 x86_64
20:29:40.202 INFO - v2.25.0, with Core v2.25.0. Built from revision 17137
20:29:40.322 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
20:29:40.324 INFO - Version Jetty/5.1.x
20:29:40.324 INFO - Started HttpContext[/selenium-server/driver,/selenium-server/driver]
20:29:40.326 INFO - Started HttpContext[/selenium-server,/selenium-server]
20:29:40.326 INFO - Started HttpContext[/,/]
20:29:40.376 INFO - Started org.openqa.jetty.jetty.servlet.ServletHandler@1f8b81e3
20:29:40.377 INFO - Started HttpContext[/wd,/wd]
20:29:40.382 INFO - Started SocketListener on 0.0.0.0:4444
20:29:40.383 INFO - Started org.openqa.jetty.jetty.Server@4ee1d5ea

1 个答案:

答案 0 :(得分:0)

如果评论无效,请尝试将开始命令更改为

java -jar lib/selenium-server-standalone-2.25.0.jar -role hub

(这是启动Selenium Grid的命令,所以它可能对你不对,但我不知道你想要实现的目标)

如上所述,运行命令后

  1. 不要关闭命令行
  2. 打开浏览器并加载http://127.0.0.1:4444/
  3. 你应该看到这样的事情:

    您正在使用网格2.25.0 查找官方selenium wiki的帮助:more help here

    默认监控页面:console