diff --git a/apps/SeleniumService/selenium_worker.py b/apps/SeleniumService/selenium_worker.py index 021029b..dc62390 100644 --- a/apps/SeleniumService/selenium_worker.py +++ b/apps/SeleniumService/selenium_worker.py @@ -322,6 +322,12 @@ class AutomationMassHealth: "status": "error", "message": str(e), } + + finally: + if self.driver: + self.driver.quit() + AutomationMassHealth.last_instance = None + def main_workflow_upto_step2(self, url): self.config_driver()