From c5c8df23bfb45a6d7b53a0c082a825dc3ae9a945 Mon Sep 17 00:00:00 2001 From: Jakub Raczek Date: Fri, 17 Feb 2017 09:28:25 +0100 Subject: [PATCH] Replacing System.Drawing.Imaging.ImageFormat by ScreenshotImageFormat for taking screenshots --- Objectivity.Test.Automation.Common/DriverContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objectivity.Test.Automation.Common/DriverContext.cs b/Objectivity.Test.Automation.Common/DriverContext.cs index d92bca9e4..2de5f3cb3 100644 --- a/Objectivity.Test.Automation.Common/DriverContext.cs +++ b/Objectivity.Test.Automation.Common/DriverContext.cs @@ -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); }