Skip to content

Commit 4c6474b

Browse files
authored
[dotnet] [bidi] Ignore non-serializable extension properties in BrowsingContext (#16654)
1 parent 6e21bea commit 4c6474b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
// </copyright>
1919

2020
using System;
21+
using System.Text.Json.Serialization;
2122
using System.Threading.Tasks;
2223

2324
namespace OpenQA.Selenium.BiDi.BrowsingContext;
@@ -44,16 +45,22 @@ internal BrowsingContext(BiDi bidi, string id)
4445

4546
internal string Id { get; }
4647

48+
[JsonIgnore]
4749
public BiDi BiDi { get; }
4850

51+
[JsonIgnore]
4952
public BrowsingContextLogModule Log => _logModule.Value;
5053

54+
[JsonIgnore]
5155
public BrowsingContextNetworkModule Network => _networkModule.Value;
5256

57+
[JsonIgnore]
5358
public BrowsingContextScriptModule Script => _scriptModule.Value;
5459

60+
[JsonIgnore]
5561
public BrowsingContextStorageModule Storage => _storageModule.Value;
5662

63+
[JsonIgnore]
5764
public BrowsingContextInputModule Input => _inputModule.Value;
5865

5966
public Task<NavigateResult> NavigateAsync(string url, NavigateOptions? options = null)

0 commit comments

Comments
 (0)