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

Method stop

py/selenium/webdriver/remote/server.py:220–229  ·  view source on GitHub ↗

Stop the server.

(self)

Source from the content-addressed store, hash-verified

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

Callers 2

serverFunction · 0.95

Calls 1

waitMethod · 0.45

Tested by 2

serverFunction · 0.76