From 75844399763e82a1254af1b47cb666ce9192f779 Mon Sep 17 00:00:00 2001 From: jimevans Date: Wed, 9 Sep 2026 13:41:11 -0400 Subject: [PATCH 1/4] Update WebDriverBiDi dependency with API changes --- lib/PuppeteerSharp/Bidi/BidiBrowser.cs | 6 ++-- lib/PuppeteerSharp/Bidi/BidiElementHandle.cs | 2 +- lib/PuppeteerSharp/Bidi/BidiFrame.cs | 6 ++-- lib/PuppeteerSharp/Bidi/BidiMouse.cs | 6 ++-- lib/PuppeteerSharp/Bidi/BidiPage.cs | 35 ++++++++----------- .../Bidi/Core/BrowsingContext.cs | 11 +++--- lib/PuppeteerSharp/Bidi/Core/Request.cs | 10 ++---- lib/PuppeteerSharp/Bidi/ExposableFunction.cs | 10 +++--- .../Bidi/PuppeteerConnection.cs | 12 ++++--- lib/PuppeteerSharp/Bidi/WindowRealm.cs | 2 +- lib/PuppeteerSharp/PuppeteerSharp.csproj | 8 ++--- 11 files changed, 49 insertions(+), 59 deletions(-) diff --git a/lib/PuppeteerSharp/Bidi/BidiBrowser.cs b/lib/PuppeteerSharp/Bidi/BidiBrowser.cs index 39e9a938e..d58550e91 100644 --- a/lib/PuppeteerSharp/Bidi/BidiBrowser.cs +++ b/lib/PuppeteerSharp/Bidi/BidiBrowser.cs @@ -282,12 +282,12 @@ public override async Task SetWindowBoundsAsync(string windowId, WindowBounds wi { if (windowBounds.Left.HasValue) { - parameters.X = (ulong)windowBounds.Left.Value; + parameters.X = windowBounds.Left.Value; } if (windowBounds.Top.HasValue) { - parameters.Y = (ulong)windowBounds.Top.Value; + parameters.Y = windowBounds.Top.Value; } if (windowBounds.Width.HasValue) @@ -338,7 +338,7 @@ internal static async Task CreateAsync( { var capabilityRequest = new CapabilityRequest() { - AcceptInsecureCertificates = options.AcceptInsecureCerts, + AcceptInsecureCerts = options.AcceptInsecureCerts, AdditionalCapabilities = { ["webSocketUrl"] = true, }, // Tell the browser not to auto-handle prompts so we can handle them via the Dialog API. diff --git a/lib/PuppeteerSharp/Bidi/BidiElementHandle.cs b/lib/PuppeteerSharp/Bidi/BidiElementHandle.cs index 19131983a..0c30c0fb2 100644 --- a/lib/PuppeteerSharp/Bidi/BidiElementHandle.cs +++ b/lib/PuppeteerSharp/Bidi/BidiElementHandle.cs @@ -96,7 +96,7 @@ public override async Task