From 20431a268fd7bf8604e09228c6511ba44a5721ca Mon Sep 17 00:00:00 2001 From: Vishnu Date: Thu, 12 Jun 2025 19:10:59 +0530 Subject: [PATCH] stopped selenium at end --- apps/SeleniumService/selenium_worker.py | 6 ++++++ 1 file changed, 6 insertions(+) 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()