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.
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):
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\selenium-server\Parameters\AppDirectory to show the directory where the selenium-server-standalone*.jar is saved.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\selenium-server\Parameters\AppParameters to -Xrs -jar selenium-server-standalone*.jar -port 8888If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With