Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def quit(self):
- """Quits the driver and close every associated window."""
- try:
- RemoteWebDriver.quit(self)
- except (http_client.BadStatusLine, socket.error):
- # Happens if Firefox shutsdown before we've read the response from
- # the socket.
- pass
- self.binary.kill()
- try:
- shutil.rmtree(self.profile.path)
- if self.profile.tempfolder is not None:
- shutil.rmtree(self.profile.tempfolder)
- except Exception as e:
- print(str(e))
- return self.profile.path
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement