Skip to content

Commit 4941898

Browse files
committed
Merge branch 'trunk' of https://github.com/SeleniumHQ/selenium into python-formatting
2 parents d1215ea + a7a53fb commit 4941898

File tree

147 files changed

+261
-240
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

147 files changed

+261
-240
lines changed

dotnet/src/webdriver/BUILD.bazel

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,9 @@ csharp_library(
6767
"**/*.cs",
6868
]) + devtools_version_targets(),
6969
out = "WebDriver",
70+
defines = [
71+
"NET8_0_OR_GREATER",
72+
],
7073
internals_visible_to = [
7174
"WebDriver.Common.Tests",
7275
],
@@ -128,6 +131,9 @@ csharp_library(
128131
"**/*.cs",
129132
]) + devtools_version_targets(),
130133
out = "WebDriver.StrongNamed",
134+
defines = [
135+
"NET8_0_OR_GREATER",
136+
],
131137
keyfile = "//dotnet:WebDriver.snk",
132138
langversion = "12.0",
133139
resources = [

dotnet/src/webdriver/BiDi/BiDi.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ public static async Task<BiDi> ConnectAsync(string url)
6060
return bidi;
6161
}
6262

63-
public Task<Modules.BrowsingContext.BrowsingContext> CreateBrowsingContextAsync(Modules.BrowsingContext.BrowsingContextType type, Modules.BrowsingContext.CreateOptions? options = null)
63+
public Task<Modules.BrowsingContext.BrowsingContext> CreateContextAsync(Modules.BrowsingContext.ContextType type, Modules.BrowsingContext.CreateOptions? options = null)
6464
{
6565
return BrowsingContextModule.CreateAsync(type, options);
6666
}
6767

68-
public Task<IReadOnlyList<Modules.BrowsingContext.BrowsingContextInfo>> GetBrowsingContextTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null)
68+
public Task<IReadOnlyList<Modules.BrowsingContext.BrowsingContextInfo>> GetTreeAsync(Modules.BrowsingContext.GetTreeOptions? options = null)
6969
{
7070
return BrowsingContextModule.GetTreeAsync(options);
7171
}
@@ -82,22 +82,22 @@ public async ValueTask DisposeAsync()
8282
_transport?.Dispose();
8383
}
8484

85-
public Task<Subscription> OnBrowsingContextCreatedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
85+
public Task<Subscription> OnContextCreatedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
8686
{
8787
return BrowsingContextModule.OnContextCreatedAsync(handler, options);
8888
}
8989

90-
public Task<Subscription> OnBrowsingContextCreatedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
90+
public Task<Subscription> OnContextCreatedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
9191
{
9292
return BrowsingContextModule.OnContextCreatedAsync(handler, options);
9393
}
9494

95-
public Task<Subscription> OnBrowsingContextDestroyedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
95+
public Task<Subscription> OnContextDestroyedAsync(Func<Modules.BrowsingContext.BrowsingContextInfo, Task> handler, BrowsingContextsSubscriptionOptions? options = null)
9696
{
9797
return BrowsingContextModule.OnContextDestroyedAsync(handler, options);
9898
}
9999

100-
public Task<Subscription> OnBrowsingContextDestroyedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
100+
public Task<Subscription> OnContextDestroyedAsync(Action<Modules.BrowsingContext.BrowsingContextInfo> handler, BrowsingContextsSubscriptionOptions? options = null)
101101
{
102102
return BrowsingContextModule.OnContextDestroyedAsync(handler, options);
103103
}

dotnet/src/webdriver/BiDi/BiDiException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22

33
namespace OpenQA.Selenium.BiDi;
44

dotnet/src/webdriver/BiDi/Communication/Command.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System.Text.Json.Serialization;
1+
using System.Text.Json.Serialization;
22

33
namespace OpenQA.Selenium.BiDi.Communication;
44

dotnet/src/webdriver/BiDi/Communication/CommandOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22

33
namespace OpenQA.Selenium.BiDi.Communication;
44

dotnet/src/webdriver/BiDi/Communication/EventHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using OpenQA.Selenium.BiDi.Modules.BrowsingContext;
1+
using OpenQA.Selenium.BiDi.Modules.BrowsingContext;
22
using System;
33
using System.Collections.Generic;
44
using System.Threading.Tasks;

dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserUserContextConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using OpenQA.Selenium.BiDi.Modules.Browser;
1+
using OpenQA.Selenium.BiDi.Modules.Browser;
22
using System;
33
using System.Text.Json;
44
using System.Text.Json.Serialization;

dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowsingContextConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using OpenQA.Selenium.BiDi.Modules.BrowsingContext;
1+
using OpenQA.Selenium.BiDi.Modules.BrowsingContext;
22
using System;
33
using System.Text.Json;
44
using System.Text.Json.Serialization;

dotnet/src/webdriver/BiDi/Communication/Json/Converters/ChannelConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using OpenQA.Selenium.BiDi.Modules.Script;
1+
using OpenQA.Selenium.BiDi.Modules.Script;
22
using System;
33
using System.Text.Json;
44
using System.Text.Json.Serialization;

dotnet/src/webdriver/BiDi/Communication/Json/Converters/DateTimeOffsetConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Text.Json;
33
using System.Text.Json.Serialization;
44

0 commit comments

Comments
 (0)