硒服务器:意外状态SERVICE_PAUSED [英] selenium-server: Unexpected status SERVICE_PAUSED

查看:761
本文介绍了硒服务器:意外状态SERVICE_PAUSED的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows 10中尝试将Selenium Server作为服务安装(使用nssm)失败,并在 nssm上启动意外状态SERVICE_PAUSED 启动硒服务器。 Selenium是selenium-server-standalone-2.53.0.jar。 nssm是2.24。操作系统是Windows 10、1511、32位。

Attempts to install Selenium Server as a service (using nssm) in Windows 10 fail with Unexpected status SERVICE_PAUSED on nssm start selenium-server. Selenium is selenium-server-standalone-2.53.0.jar. nssm is 2.24. OS is Windows 10, 1511, 32-bit.

事件查看器说


服务硒服务器运行了不到1500毫秒。重新启动
将延迟16000毫秒。

Service selenium-server ran for less than 1500 milliseconds. Restart will be delayed by 16000 milliseconds.

目标是使用代码接收对Symfony应用程序进行验收测试。 PhantomJS已被废弃,因为它无法容纳JavaScript弹出窗口。

The objective is to run acceptance tests of a Symfony application using codeception. PhantomJS has been abandoned as it does not accommodate javascript popups.

推荐答案

返回问题&进行更多搜索后,发现解决方案此处。尽管这已经很老了,但主要功能仍保持不变(请务必替换 * 以提供服务器jar的准确文件名,例如 selenium-server-standalone-3.0.0-beta4.jar ):

Returning to the question & doing some more searching revealed the solution here. While this is quite old, the key features remain the same (be sure to replace the * to provide the precise file name of the server jar, e.g., selenium-server-standalone-3.0.0-beta4.jar):


  1. 在注册表中,修改键 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\selenium-server\Parameters\AppDirectory 显示selenium-server-standalone * .jar所在的目录保存。

  2. 还修改键 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\selenium-server\Parameters\AppParameters -Xrs -jar selenium-server-standalone * .jar-端口8888

  1. In the registry, modify the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\selenium-server\Parameters\AppDirectory to show the directory where the selenium-server-standalone*.jar is saved.
  2. Also modify the key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\selenium-server\Parameters\AppParameters to -Xrs -jar selenium-server-standalone*.jar -port 8888

这篇关于硒服务器:意外状态SERVICE_PAUSED的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆