Skip to content

Commit

Permalink
[dotnet] Deprecate saving screenshots with different image formats (#…
Browse files Browse the repository at this point in the history
…12878)

* Deprecate saving screenshots with different image formats

---------

Co-authored-by: Titus Fortner <titusfortner@users.noreply.github.com>
  • Loading branch information
nvborisenko and titusfortner authored Oct 5, 2023
1 parent 26f0dd5 commit c8e93aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dotnet/src/webdriver/Screenshot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ namespace OpenQA.Selenium
/// <summary>
/// File format for saving screenshots.
/// </summary>
[Obsolete("Support for decoding/encoding between different image formats is deprecated")]
public enum ScreenshotImageFormat
{
/// <summary>
Expand Down Expand Up @@ -84,6 +85,7 @@ public override void SaveAsFile(string fileName)
/// <param name="fileName">The full path and file name to save the screenshot to.</param>
/// <param name="format">A <see cref="ScreenshotImageFormat"/> value indicating the format
/// to save the image to.</param>
[Obsolete("Support for decoding/encoding between different image formats is deprecated; use SaveAsFile(string fileName) method instead")]
public void SaveAsFile(string fileName, ScreenshotImageFormat format)
{
using (MemoryStream imageStream = new MemoryStream(this.AsByteArray))
Expand Down

0 comments on commit c8e93aa

Please sign in to comment.