tags:

views:

428

answers:

6

I start selenium hub to start selenium grid from command prompt on port 4444. Now I start selenium RC from other command prompt. It show me error message that "selenium i s 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.

A: 

It's easiest to do from a browser (e.g. http://localhost:4444/selenium-server/driver/?cmd=shutDown), but you can also call that url with curl if you need command line access.

Andrew B
A: 

Thanks it help me. I am new in selenium . Can you know me website address which can help me to learn selenium

tejas trivedi
+1  A: 

You'll need to register your RC's with the Selenium Hub. Each RC needs to register on a different port (I think). You can use ant to boot the RC on a specific port

ant -Dport=5556 launch-remote-control

I found running the demos that come with Grid really helpful:

http://selenium-grid.seleniumhq.org/run_the_demo.html

hth

Rodreegez
A: 

Hello. After "http://localhost:4444/selenium-server/driver/?cmd=shutDown" i have a post

ERROR: ERROR: No sessionId provided. Most likely your original newBrowserSession command failed.

And hub/rc not closed. Why?

alexey.chumagin
A: 

You can to press "ctrl"+"C" in command window, (where hub or RC is running) and to stop execution of batch file

alexey.chumagin
A: 

To answer your original question of how do you close selenium hub from the command prompt, you can try this from the selenium-grid folder:
(from documentation)
rake all:restart
rake all:stop

Or for specific ports:
rake all:restart PORTS=5000-5010
rake all:stop PORTS=5000-5010

dhackner