We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e943cc1 commit 9318b7aCopy full SHA for 9318b7a
dotnet/src/webdriver/BiDi/BrowsingContext/CaptureScreenshotCommand.cs
@@ -58,5 +58,7 @@ public record ElementClipRectangle(Script.ISharedReference Element) : ClipRectan
58
59
public record CaptureScreenshotResult(string Data) : EmptyResult
60
{
61
+ public static implicit operator byte[](CaptureScreenshotResult captureScreenshotResult) => captureScreenshotResult.ToByteArray();
62
+
63
public byte[] ToByteArray() => System.Convert.FromBase64String(Data);
64
}
0 commit comments