Stop selenium remote control server using python

How do I stop selenium server remote control after running my selenium tests in python.

It can be done by issuing a Shutdown request via http.

All you need to do is this:


import urllib2

urllib2.urlopen('http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer')


I'm assuming that selenium rc server is running on the default port 4444. You need to change this if you run on a different port.

Hope this is useful


User login

Who's new

  • amitbhagwat
  • TenLekerand
  • ClainaNaigh
  • RaviGunasekaran
  • gopasruhafoni

Who's online

There are currently 0 users and 0 guests online.