Skip to content

Commit 2dddbad

Browse files
committed
[dotnet] [bidi] Decouple WindowProxyProperties in Script module
1 parent 64dbbfc commit 2dddbad

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

dotnet/src/webdriver/BiDi/Modules/Script/RemoteValue.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,11 @@ public record NodeRemoteValue : RemoteValue, ISharedReference
260260
public NodeProperties? Value { get; internal set; }
261261
}
262262

263-
public record WindowProxyRemoteValue(WindowProxyRemoteValue.Properties Value) : RemoteValue
263+
public record WindowProxyRemoteValue(WindowProxyProperties Value) : RemoteValue
264264
{
265265
public Handle? Handle { get; set; }
266266

267267
public InternalId? InternalId { get; set; }
268-
269-
public record Properties(BrowsingContext.BrowsingContext Context);
270268
}
271269

272270
public abstract record PrimitiveProtocolRemoteValue : RemoteValue;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// <copyright file="WindowProxyProperties.cs" company="Selenium Committers">
2+
// Licensed to the Software Freedom Conservancy (SFC) under one
3+
// or more contributor license agreements. See the NOTICE file
4+
// distributed with this work for additional information
5+
// regarding copyright ownership. The SFC licenses this file
6+
// to you under the Apache License, Version 2.0 (the
7+
// "License"); you may not use this file except in compliance
8+
// with the License. You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing,
13+
// software distributed under the License is distributed on an
14+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
// KIND, either express or implied. See the License for the
16+
// specific language governing permissions and limitations
17+
// under the License.
18+
// </copyright>
19+
20+
namespace OpenQA.Selenium.BiDi.Modules.Script;
21+
22+
public record WindowProxyProperties(BrowsingContext.BrowsingContext Context);

0 commit comments

Comments
 (0)