Skip to content

Commit c08fb5f

Browse files
committed
delete the file after assertion
1 parent 4cf553f commit c08fb5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/java/src/test/java/dev/selenium/browsers/FirefoxTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ public void fullPageScreenshot() throws Exception {
185185

186186
// Verify the screenshot file exists
187187
Assertions.assertTrue(targetFile.exists(), "The full page screenshot file should exist");
188+
Files.deleteIfExists(targetFile.toPath());
188189

189190
driver.quit();
190191
}

0 commit comments

Comments
 (0)