TestStack / White

DEPRECATED - no longer actively maintained
Other
1.02k stars 486 forks source link

Screenshot captured returns black image #649

Open Priyank06 opened 5 years ago

Priyank06 commented 5 years ago

Hi All,

I implement functionality where if execution of test case throws any error, it capture screen shot of application at that state.

I am capturing screenshot using following code. `Desktop.TakeScreenshot( File Path with extension, System.Drawing.Imaging.ImageFormat.Png)

But in result, it save a black image, and not actual screen shot of application.

TestImage

Any suggestion on what to do here?

sus2-sf commented 1 year ago

I am seeing the same when my tests run in Github, it does capture the screenshot and saves it in the correct folder but they are black