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.
2 parents 00c9f86 + e00da40 commit bffd593Copy full SHA for bffd593
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