MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / stop

Method stop

py/selenium/webdriver/remote/server.py:219–228  ·  view source on GitHub ↗

Stop the server.

(self)

Source from the content-addressed store, hash-verified

217 return self.process
218
219 def stop(self):
220 """Stop the server."""
221 if self.process is None:
222 raise RuntimeError("Selenium server isn't running")
223 else:
224 if self.process.poll() is None:
225 self.process.terminate()
226 self.process.wait()
227 self.process = None
228 print("Selenium server has been terminated")

Callers 2

serverFunction · 0.95

Calls 2

terminateMethod · 0.80
waitMethod · 0.45

Tested by 2

serverFunction · 0.76