Skip to content

Commit 6dc05d3

Browse files
Reset driver and vncRecordingContainer when Selenium container stops (#5116)
1 parent b8d75b1 commit 6dc05d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/selenium/src/main/java/org/testcontainers/containers/BrowserWebDriverContainer.java

+2
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ public void stop() {
318318
} catch (Exception e) {
319319
LOGGER.debug("Failed to quit the driver", e);
320320
}
321+
driver = null;
321322
}
322323

323324
if (vncRecordingContainer != null) {
@@ -326,6 +327,7 @@ public void stop() {
326327
} catch (Exception e) {
327328
LOGGER.debug("Failed to stop vncRecordingContainer", e);
328329
}
330+
vncRecordingContainer = null;
329331
}
330332

331333
super.stop();

0 commit comments

Comments
 (0)