Loading…
Notes
CI/CD screenshot persistence
Archive the screenshots directory as a pipeline artifact and attach it to reports — without an explicit upload step, most CI runners discard the workspace (and your failure evidence) when the job ends.
Common pitfalls
Don't let concurrent runs overwrite each other's screenshots — the timestamped filename helps, but two failures in the same second on parallel threads can still collide. Make sure a WebDriver is actually reachable inside listener callbacks (it usually isn't the same instance as the one in your test method), and persist the workspace in CI or the files vanish with the container.