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

Method quit

py/selenium/webdriver/safari/webdriver.py:62–71  ·  view source on GitHub ↗

Closes the browser and shuts down the SafariDriver executable.

(self)

Source from the content-addressed store, hash-verified

60 raise
61
62 def quit(self):
63 """Closes the browser and shuts down the SafariDriver executable."""
64 try:
65 super().quit()
66 except Exception:
67 # We don't care about the message because something probably has gone wrong
68 pass
69 finally:
70 if not self.service.reuse_service:
71 self.service.stop()
72
73 # safaridriver extension commands. The canonical command support matrix is here:
74 # https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/WebDriverEndpointDoc/Commands/Commands.html

Callers 1

__init__Method · 0.95

Calls 2

quitMethod · 0.65
stopMethod · 0.65

Tested by

no test coverage detected