Пример #1
0
 def quit(self):
     """
     Closes the browser and shuts down the
     """
     try:
         RemoteWebDriver.quit(self)
     except http_client.BadStatusLine:
         pass
Пример #2
0
 def quit(self):
     """
     Closes the browser and shuts down the WebKitGTKDriver executable
     that is started when starting the WebKitGTKDriver
     """
     try:
         RemoteWebDriver.quit(self)
     except http_client.BadStatusLine:
         pass
     finally:
         self.service.stop()
Пример #3
0
 def quit(self):
     """
     Closes the browser and shuts down the ChromeDriver executable
     that is started when starting the ChromeDriver
     """
     try:
         RemoteWebDriver.quit(self)
     except Exception:
         # We don't care about the message because something probably has gone wrong
         pass
     finally:
         self.service.stop()
Пример #4
0
    def quit(self):
        """Quits the driver and close every associated window."""
        try:
            RemoteWebDriver.quit(self)
        except Exception:
            # We don't care about the message because something probably has gone wrong
            pass

        if self.w3c:
            self.service.stop()
        else:
            self.binary.kill()

        if self.profile is not None:
            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))
Пример #5
0
 def quit(self):
     RemoteWebDriver.quit(self)
     self.iedriver.stop()
Пример #6
0
 def quit(self):
     RemoteWebDriver.quit(self)
     self.edge_service.stop()