Skip to content

Commit 35dd34a

Browse files
committed
[dotnet] [bidi] Simplify browsing context type enumeration
1 parent 3e02303 commit 35dd34a

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

dotnet/src/webdriver/BiDi/BiDi.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public static async Task<BiDi> ConnectAsync(string url)
6060
return bidi;
6161
}
6262

63-
public Task<Modules.BrowsingContext.BrowsingContext> CreateContextAsync(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
}

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext;
77

88
public class BrowsingContextModule(Broker broker) : Module(broker)
99
{
10-
public async Task<BrowsingContext> CreateAsync(BrowsingContextType type, CreateOptions? options = null)
10+
public async Task<BrowsingContext> CreateAsync(ContextType type, CreateOptions? options = null)
1111
{
1212
var @params = new CreateCommandParameters(type);
1313

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace OpenQA.Selenium.BiDi.Modules.BrowsingContext;
44

55
internal class CreateCommand(CreateCommandParameters @params) : Command<CreateCommandParameters>(@params);
66

7-
internal record CreateCommandParameters(BrowsingContextType Type) : CommandParameters
7+
internal record CreateCommandParameters(ContextType Type) : CommandParameters
88
{
99
public BrowsingContext? ReferenceContext { get; set; }
1010

@@ -22,7 +22,7 @@ public record CreateOptions : CommandOptions
2222
public Browser.UserContext? UserContext { get; set; }
2323
}
2424

25-
public enum BrowsingContextType
25+
public enum ContextType
2626
{
2727
Tab,
2828
Window

0 commit comments

Comments
 (0)