Skip to content

Commit 6939b5b

Browse files
committed
[dotnet] Add BiDi OriginalOpener in browsing context info
1 parent 3e8b34c commit 6939b5b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dotnet/src/webdriver/BiDi/Communication/Transport/WebSocketTransport.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public async Task<T> ReceiveAsJsonAsync<T>(JsonSerializerOptions jsonSerializerO
3939

4040
if (_logger.IsEnabled(LogEventLevel.Trace))
4141
{
42-
_logger.Trace($"BIDI RCV << {Encoding.UTF8.GetString(ms.ToArray())}");
42+
_logger.Trace($"BiDi RCV << {Encoding.UTF8.GetString(ms.ToArray())}");
4343
}
4444

4545
var res = await JsonSerializer.DeserializeAsync(ms, typeof(T), jsonSerializerOptions, cancellationToken).ConfigureAwait(false);
@@ -53,7 +53,7 @@ public async Task SendAsJsonAsync(Command command, JsonSerializerOptions jsonSer
5353

5454
if (_logger.IsEnabled(LogEventLevel.Trace))
5555
{
56-
_logger.Trace($"BIDI SND >> {buffer.Length} > {Encoding.UTF8.GetString(buffer)}");
56+
_logger.Trace($"BiDi SND >> {buffer.Length} > {Encoding.UTF8.GetString(buffer)}");
5757
}
5858

5959
await _webSocket.SendAsync(new ArraySegment<byte>(buffer), WebSocketMessageType.Text, true, cancellationToken).ConfigureAwait(false);

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System.Collections.Generic;
1+
using System.Collections.Generic;
22
using System.Text.Json.Serialization;
33

44
namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext;
55

66
// TODO: Split it to separate class with just info and event args
7-
public record BrowsingContextInfo(BiDi BiDi, IReadOnlyList<BrowsingContextInfo> Children, BrowsingContext Context, string Url, Browser.UserContext UserContext)
7+
public record BrowsingContextInfo(BiDi BiDi, IReadOnlyList<BrowsingContextInfo> Children, BrowsingContext Context, BrowsingContext OriginalOpener, string Url, Browser.UserContext UserContext)
88
: BrowsingContextEventArgs(BiDi, Context)
99
{
1010
[JsonInclude]

0 commit comments

Comments
 (0)