how to close selenium hub/grid from command prompt

tejas trivedi picture tejas trivedi · Mar 25, 2010 · Viewed 33.5k times · Source

I start Selenium hub to start Selenium Grid from command prompt on port 4444. Now I start Selenium RC from other command prompt.

It shows me error message that "Selenium is already running on port 4444. Or some other service is..."

Now I am not able to start Selenium RC. Please help me how to close /shutdown hub from command prompt.

Answer

Lakshmi V picture Lakshmi V · Apr 30, 2012

http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer

is the command to close the opened selenium session. If the session is opened using batch file please remove the '@pause' command if its is used. This is useful when we are trying to stop and start the server during or in between test case execution.

Or

"Ctrl + C" is the best option.