Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

selenium-server: Unexpected status SERVICE_PAUSED

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.

Event viewer says

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

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

like image 435
geoB Avatar asked Dec 15 '25 03:12

geoB


1 Answers

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. 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
like image 72
geoB Avatar answered Dec 16 '25 16:12

geoB



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!