简体   繁体   English

Selenium独立服务器jar文件挂起

[英]Selenium standalone server jar file hangs

I'm having an issue running the Selenium standalone server -- it just hangs partway through loading. 我在运行Selenium独立服务器时遇到问题-它只是在加载过程中挂起。 I've tried several different versions of the standalone server but the same issue arises. 我尝试了独立服务器的几种不同版本,但是出现了相同的问题。 From the command line I run... 从命令行运行...

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

And get back... 回来...

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

If the comment does not help, try changing start command to 如果注释没有帮助,请尝试将启动命令更改为

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

(It is command for starting Selenium Grid, so it might be wrong for you, but I dont know what are you trying to achieve) (这是启动Selenium Grid的命令,因此对您来说可能是错误的,但我不知道您要实现什么目标)

And as mentioned above, after the command is run 并且如上所述,在命令运行之后

  1. DO NOT CLOSE COMMAND LINE 不要关闭命令行
  2. Open browser and load http://127.0.0.1:4444/ 打开浏览器并加载http://127.0.0.1:4444/

You should see something like this: 您应该会看到以下内容:

You are using grid 2.25.0 Find help on the official selenium wiki : more help here 您正在使用grid 2.25.0在官方的硒Wiki上寻求帮助更多帮助,请点击这里

default monitoring page : console 默认监视页面:控制台

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 selenium-server-standalone-2.37.0.jar损坏了? - selenium-server-standalone-2.37.0.jar is broken? 在Eclipse项目中添加selenium-server-standalone-3.5.0 jar文件时在项目上显示错误 - Error display on project while adding selenium-server-standalone-3.5.0 jar file in eclipse project 使用Selenium Server Standalone处理文件上载 - Handle file upload with Selenium Server Standalone 使用ant文件运行Selenium Standalone Server - Running Selenium Standalone Server using ant file 什么时候需要硒独立罐? - When selenium standalone jar is required? 执行 selenium 独立 jar 时出现问题 - problem in executing selenium standalone jar “Selenium-server-standalone.jar”和“Selenium Client & WebDriver”之间有什么区别? - What are the differences between 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver'? 如果我不使用 selenium 服务器独立文件,是否需要 selenium 服务器来使用 selenium 客户端创建 selenium 自动化? - Is selenium server required to create selenium automation using selenium client if i am not using selenium server standalone file? Docker Selenium 独立服务器无法将文件上传到容器中的网格浏览器 - Docker Selenium standalone server is Unable to upload a file to the grid browser in the container jarfile /usr/local/bin/selenium-server-standalone-2.38.0.jar无效或损坏 - Invalid or corrupt jarfile /usr/local/bin/selenium-server-standalone-2.38.0.jar
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM