Skip to content

Commit 4768f5a

Browse files
committed
[dotnet] [bidi] Avoid entities renaming on client and just follow specification
1 parent b3fc1b3 commit 4768f5a

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dotnet/src/webdriver/BiDi/Modules/Browser/ClientWindowInfo.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using System.Text.Json.Serialization;
21-
2220
namespace OpenQA.Selenium.BiDi.Modules.Browser;
2321

24-
public record ClientWindowInfo([property: JsonPropertyName("active")] bool IsActive, ClientWindow ClientWindow, ClientWindowState State, int Height, int Width, int X, int Y);
22+
public record ClientWindowInfo(bool Active, ClientWindow ClientWindow, ClientWindowState State, int Height, int Width, int X, int Y);
2523

2624
public enum ClientWindowState
2725
{

dotnet/src/webdriver/BiDi/Modules/BrowsingContext/CaptureScreenshotCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public abstract record ClipRectangle;
5454

5555
public record BoxClipRectangle(double X, double Y, double Width, double Height) : ClipRectangle;
5656

57-
public record ElementClipRectangle([property: JsonPropertyName("element")] Script.ISharedReference SharedReference) : ClipRectangle;
57+
public record ElementClipRectangle(Script.ISharedReference Element) : ClipRectangle;
5858

5959
public record CaptureScreenshotResult(string Data) : EmptyResult
6060
{

0 commit comments

Comments
 (0)