diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs index 8857f5229b254..45eb812f5ddce 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs @@ -22,6 +22,8 @@ using OpenQA.Selenium.DevTools; using OpenQA.Selenium.Remote; +#pragma warning disable CS0618 // Obsolete members are used internally + namespace OpenQA.Selenium.Chromium; /// @@ -32,76 +34,92 @@ public class ChromiumDriver : WebDriver, ISupportsLogs, IDevTools /// /// Accept untrusted SSL Certificates /// + [Obsolete("This field will be made protected in v4.44.")] + // When make it protected don't forget to remove pragma warning disable CS0618 and the Obsolete attribute from this field. public static readonly bool AcceptUntrustedCertificates = true; /// /// Command for executing a Chrome DevTools Protocol command in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string ExecuteCdp = "executeCdpCommand"; /// /// Command for getting cast sinks in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string GetCastSinksCommand = "getCastSinks"; /// /// Command for selecting a cast sink in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string SelectCastSinkCommand = "selectCastSink"; /// /// Command for starting cast tab mirroring in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string StartCastTabMirroringCommand = "startCastTabMirroring"; /// /// Command for starting cast desktop mirroring in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string StartCastDesktopMirroringCommand = "startCastDesktopMirroring"; /// /// Command for getting a cast issued message in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string GetCastIssueMessageCommand = "getCastIssueMessage"; /// /// Command for stopping casting in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string StopCastingCommand = "stopCasting"; /// /// Command for getting the simulated network conditions in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string GetNetworkConditionsCommand = "getNetworkConditions"; /// /// Command for setting the simulated network conditions in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string SetNetworkConditionsCommand = "setNetworkConditions"; /// /// Command for deleting the simulated network conditions in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string DeleteNetworkConditionsCommand = "deleteNetworkConditions"; /// /// Command for executing a Chrome DevTools Protocol command in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public 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. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string SendChromeCommandWithResult = "sendChromeCommandWithResult"; /// /// Command for launching an app in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string LaunchAppCommand = "launchAppCommand"; /// /// Command for setting permissions in a driver for a Chromium-based browser. /// + [Obsolete("This field will be made protected in v4.44.")] public static readonly string SetPermissionCommand = "setPermission"; private readonly string optionsCapabilityName;