Closes the browser and shuts down the SafariDriver executable.
(self)
| 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 |