From 1a4c2b3967ec1436f0a6b8ae621a7b6e7f200c4c Mon Sep 17 00:00:00 2001 From: wonderson chideya Date: Mon, 13 Jan 2025 15:11:31 +0000 Subject: [PATCH] fix:changed teardown --- .../framework/stepdefs/vol/TestRunConfiguration.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java b/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java index 20c4026ad..c349d11a9 100644 --- a/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java +++ b/src/test/java/org/dvsa/testing/framework/stepdefs/vol/TestRunConfiguration.java @@ -37,8 +37,12 @@ public void takeScreenShotAfterFailure(Scenario scenario) { } } } + } + + @AfterAll + public static void tearDown() { if (Browser.isBrowserOpen()) { - Browser.getDriver().close(); + Browser.getDriver().quit(); Browser.removeLocalDriverThread(); } }