Skip to content

Commit 30e0e1a

Browse files
committed
Also make command options as class
1 parent 051862f commit 30e0e1a

Some content is hidden

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

43 files changed

+50
-50
lines changed

dotnet/src/webdriver/BiDi/Browser/CloseCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ namespace OpenQA.Selenium.BiDi.Browser;
2424
internal sealed class CloseCommand()
2525
: Command<CommandParameters, EmptyResult>(CommandParameters.Empty, "browser.close");
2626

27-
public sealed record CloseOptions : CommandOptions;
27+
public sealed class CloseOptions : CommandOptions;

dotnet/src/webdriver/BiDi/Browser/CreateUserContextCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal sealed class CreateUserContextCommand(CreateUserContextCommandParameter
2626

2727
internal sealed record CreateUserContextCommandParameters(bool? AcceptInsecureCerts, Session.ProxyConfiguration? Proxy) : CommandParameters;
2828

29-
public sealed record CreateUserContextOptions : CommandOptions
29+
public sealed class CreateUserContextOptions : CommandOptions
3030
{
3131
public bool? AcceptInsecureCerts { get; set; }
3232

dotnet/src/webdriver/BiDi/Browser/GetClientWindowsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace OpenQA.Selenium.BiDi.Browser;
2626
internal sealed class GetClientWindowsCommand()
2727
: Command<CommandParameters, GetClientWindowsResult>(CommandParameters.Empty, "browser.getClientWindows");
2828

29-
public sealed record GetClientWindowsOptions : CommandOptions;
29+
public sealed class GetClientWindowsOptions : CommandOptions;
3030

3131
public sealed record GetClientWindowsResult : EmptyResult, IReadOnlyList<ClientWindowInfo>
3232
{

dotnet/src/webdriver/BiDi/Browser/GetUserContextsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace OpenQA.Selenium.BiDi.Browser;
2626
internal sealed class GetUserContextsCommand()
2727
: Command<CommandParameters, GetUserContextsResult>(CommandParameters.Empty, "browser.getUserContexts");
2828

29-
public record GetUserContextsOptions : CommandOptions;
29+
public class GetUserContextsOptions : CommandOptions;
3030

3131
public sealed record GetUserContextsResult : EmptyResult, IReadOnlyList<UserContextInfo>
3232
{

dotnet/src/webdriver/BiDi/Browser/RemoveUserContextCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ internal sealed class RemoveUserContextCommand(RemoveUserContextCommandParameter
2626

2727
internal sealed record RemoveUserContextCommandParameters(UserContext UserContext) : CommandParameters;
2828

29-
public sealed record RemoveUserContextOptions : CommandOptions;
29+
public sealed class RemoveUserContextOptions : CommandOptions;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ internal sealed class ActivateCommand(ActivateCommandParameters @params)
2626

2727
internal sealed record ActivateCommandParameters(BrowsingContext Context) : CommandParameters;
2828

29-
public sealed record ActivateOptions : CommandOptions;
29+
public sealed class ActivateOptions : CommandOptions;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal sealed class CaptureScreenshotCommand(CaptureScreenshotCommandParameter
2727

2828
internal sealed record CaptureScreenshotCommandParameters(BrowsingContext Context, ScreenshotOrigin? Origin, ImageFormat? Format, ClipRectangle? Clip) : CommandParameters;
2929

30-
public sealed record CaptureScreenshotOptions : CommandOptions
30+
public sealed class CaptureScreenshotOptions : CommandOptions
3131
{
3232
public ScreenshotOrigin? Origin { get; set; }
3333

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal sealed class CloseCommand(CloseCommandParameters @params)
2626

2727
internal sealed record CloseCommandParameters(BrowsingContext Context, bool? PromptUnload) : CommandParameters;
2828

29-
public sealed record CloseOptions : CommandOptions
29+
public sealed class CloseOptions : CommandOptions
3030
{
3131
public bool? PromptUnload { get; set; }
3232
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal sealed class CreateCommand(CreateCommandParameters @params)
2626

2727
internal sealed record CreateCommandParameters(ContextType Type, BrowsingContext? ReferenceContext, bool? Background, Browser.UserContext? UserContext) : CommandParameters;
2828

29-
public sealed record CreateOptions : CommandOptions
29+
public sealed class CreateOptions : CommandOptions
3030
{
3131
public BrowsingContext? ReferenceContext { get; set; }
3232

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal sealed class GetTreeCommand(GetTreeCommandParameters @params)
2727

2828
internal sealed record GetTreeCommandParameters(long? MaxDepth, BrowsingContext? Root) : CommandParameters;
2929

30-
public sealed record GetTreeOptions : CommandOptions
30+
public sealed class GetTreeOptions : CommandOptions
3131
{
3232
public GetTreeOptions() { }
3333

0 commit comments

Comments
 (0)