Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screenshot captured returns black image #649

Open
Priyank06 opened this issue May 23, 2019 · 1 comment
Open

Screenshot captured returns black image #649

Priyank06 opened this issue May 23, 2019 · 1 comment

Comments

@Priyank06
Copy link

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
Copy link

sus2-sf commented May 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants