From 1746f2af4d71483227efaf7e378f4defe6f480f5 Mon Sep 17 00:00:00 2001
From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com>
Date: Thu, 19 Feb 2026 01:08:06 +0300
Subject: [PATCH] [dotnet] Hide unnecessary chromium public fields
---
.../src/webdriver/Chromium/ChromiumDriver.cs | 30 +++++++++----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs
index 8857f5229b254..eb66afcf18a18 100644
--- a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs
+++ b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs
@@ -32,77 +32,77 @@ public class ChromiumDriver : WebDriver, ISupportsLogs, IDevTools
///
/// Accept untrusted SSL Certificates
///
- public static readonly bool AcceptUntrustedCertificates = true;
+ protected static readonly bool AcceptUntrustedCertificates = true;
///
/// Command for executing a Chrome DevTools Protocol command in a driver for a Chromium-based browser.
///
- public static readonly string ExecuteCdp = "executeCdpCommand";
+ protected static readonly string ExecuteCdp = "executeCdpCommand";
///
/// Command for getting cast sinks in a driver for a Chromium-based browser.
///
- public static readonly string GetCastSinksCommand = "getCastSinks";
+ protected static readonly string GetCastSinksCommand = "getCastSinks";
///
/// Command for selecting a cast sink in a driver for a Chromium-based browser.
///
- public static readonly string SelectCastSinkCommand = "selectCastSink";
+ protected static readonly string SelectCastSinkCommand = "selectCastSink";
///
/// Command for starting cast tab mirroring in a driver for a Chromium-based browser.
///
- public static readonly string StartCastTabMirroringCommand = "startCastTabMirroring";
+ protected static readonly string StartCastTabMirroringCommand = "startCastTabMirroring";
///
/// Command for starting cast desktop mirroring in a driver for a Chromium-based browser.
///
- public static readonly string StartCastDesktopMirroringCommand = "startCastDesktopMirroring";
+ protected static readonly string StartCastDesktopMirroringCommand = "startCastDesktopMirroring";
///
/// Command for getting a cast issued message in a driver for a Chromium-based browser.
///
- public static readonly string GetCastIssueMessageCommand = "getCastIssueMessage";
+ protected static readonly string GetCastIssueMessageCommand = "getCastIssueMessage";
///
/// Command for stopping casting in a driver for a Chromium-based browser.
///
- public static readonly string StopCastingCommand = "stopCasting";
+ protected static readonly string StopCastingCommand = "stopCasting";
///
/// Command for getting the simulated network conditions in a driver for a Chromium-based browser.
///
- public static readonly string GetNetworkConditionsCommand = "getNetworkConditions";
+ protected static readonly string GetNetworkConditionsCommand = "getNetworkConditions";
///
/// Command for setting the simulated network conditions in a driver for a Chromium-based browser.
///
- public static readonly string SetNetworkConditionsCommand = "setNetworkConditions";
+ protected static readonly string SetNetworkConditionsCommand = "setNetworkConditions";
///
/// Command for deleting the simulated network conditions in a driver for a Chromium-based browser.
///
- public static readonly string DeleteNetworkConditionsCommand = "deleteNetworkConditions";
+ protected static readonly string DeleteNetworkConditionsCommand = "deleteNetworkConditions";
///
/// Command for executing a Chrome DevTools Protocol command in a driver for a Chromium-based browser.
///
- public static readonly string SendChromeCommand = "sendChromeCommand";
+ protected static readonly string SendChromeCommand = "sendChromeCommand";
///
/// Command for executing a Chrome DevTools Protocol command that returns a result in a driver for a Chromium-based browser.
///
- public static readonly string SendChromeCommandWithResult = "sendChromeCommandWithResult";
+ protected static readonly string SendChromeCommandWithResult = "sendChromeCommandWithResult";
///
/// Command for launching an app in a driver for a Chromium-based browser.
///
- public static readonly string LaunchAppCommand = "launchAppCommand";
+ protected static readonly string LaunchAppCommand = "launchAppCommand";
///
/// Command for setting permissions in a driver for a Chromium-based browser.
///
- public static readonly string SetPermissionCommand = "setPermission";
+ protected static readonly string SetPermissionCommand = "setPermission";
private readonly string optionsCapabilityName;
private DevToolsSession? devToolsSession;