From b778ad5e1de45f8936b3a9122233b609ac1d2119 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Sat, 14 Sep 2024 21:13:45 +0300 Subject: [PATCH] [dotnet] [bidi] Rename method of screenshot result to ToByteArray --- .../BiDi/Modules/BrowsingContext/CaptureScreenshotCommand.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/CaptureScreenshotCommand.cs b/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/CaptureScreenshotCommand.cs index 8f35898f79067..69ea01b0e70d8 100644 --- a/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/CaptureScreenshotCommand.cs +++ b/dotnet/src/webdriver/BiDi/Modules/BrowsingContext/CaptureScreenshotCommand.cs @@ -45,8 +45,5 @@ public record ElementClipRectangle(Script.SharedReference Element) : ClipRectang public record CaptureScreenshotResult(string Data) { - public byte[] AsBytes() - { - return System.Convert.FromBase64String(Data); - } + public byte[] ToByteArray() => System.Convert.FromBase64String(Data); }