Skip to content
CodeKruPro

Capture a screenshot automatically when a test fails (Python)

Explain itMedium-HardPython onlyAsked in: Accenture, Infosys, TCS, Wipro

How do you capture a screenshot automatically when a test fails in pytest?

Submit shows the model answer. Then rate yourself honestly.

to answer and keep your progress. Reading is free for everyone.