Skip to content

Commit

Permalink
Replacing System.Drawing.Imaging.ImageFormat by ScreenshotImageFormat…
Browse files Browse the repository at this point in the history
… for taking screenshots
  • Loading branch information
raczeja committed Feb 17, 2017
1 parent ed23a31 commit c5c8df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Objectivity.Test.Automation.Common/DriverContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ public void SaveScreenshot(ErrorDetail errorDetail, string folder, string title)

try
{
errorDetail.Screenshot.SaveAsFile(filePath, ImageFormat.Png);
errorDetail.Screenshot.SaveAsFile(filePath, ScreenshotImageFormat.Png);
Logger.Error(CultureInfo.CurrentCulture, "Test failed: screenshot saved to {0}.", filePath);
Logger.Info(CultureInfo.CurrentCulture, "##teamcity[publishArtifacts '{0}']", filePath);
}
Expand Down

0 comments on commit c5c8df2

Please sign in to comment.