2222using OpenQA . Selenium . DevTools ;
2323using OpenQA . Selenium . Remote ;
2424
25+ #pragma warning disable CS0618 // Obsolete members are used internally
26+
2527namespace OpenQA . Selenium . Chromium ;
2628
2729/// <summary>
@@ -32,76 +34,92 @@ public class ChromiumDriver : WebDriver, ISupportsLogs, IDevTools
3234 /// <summary>
3335 /// Accept untrusted SSL Certificates
3436 /// </summary>
37+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
38+ // When make it protected don't forget to remove pragma warning disable CS0618 and the Obsolete attribute from this field.
3539 public static readonly bool AcceptUntrustedCertificates = true ;
3640
3741 /// <summary>
3842 /// Command for executing a Chrome DevTools Protocol command in a driver for a Chromium-based browser.
3943 /// </summary>
44+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
4045 public static readonly string ExecuteCdp = "executeCdpCommand" ;
4146
4247 /// <summary>
4348 /// Command for getting cast sinks in a driver for a Chromium-based browser.
4449 /// </summary>
50+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
4551 public static readonly string GetCastSinksCommand = "getCastSinks" ;
4652
4753 /// <summary>
4854 /// Command for selecting a cast sink in a driver for a Chromium-based browser.
4955 /// </summary>
56+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
5057 public static readonly string SelectCastSinkCommand = "selectCastSink" ;
5158
5259 /// <summary>
5360 /// Command for starting cast tab mirroring in a driver for a Chromium-based browser.
5461 /// </summary>
62+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
5563 public static readonly string StartCastTabMirroringCommand = "startCastTabMirroring" ;
5664
5765 /// <summary>
5866 /// Command for starting cast desktop mirroring in a driver for a Chromium-based browser.
5967 /// </summary>
68+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
6069 public static readonly string StartCastDesktopMirroringCommand = "startCastDesktopMirroring" ;
6170
6271 /// <summary>
6372 /// Command for getting a cast issued message in a driver for a Chromium-based browser.
6473 /// </summary>
74+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
6575 public static readonly string GetCastIssueMessageCommand = "getCastIssueMessage" ;
6676
6777 /// <summary>
6878 /// Command for stopping casting in a driver for a Chromium-based browser.
6979 /// </summary>
80+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
7081 public static readonly string StopCastingCommand = "stopCasting" ;
7182
7283 /// <summary>
7384 /// Command for getting the simulated network conditions in a driver for a Chromium-based browser.
7485 /// </summary>
86+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
7587 public static readonly string GetNetworkConditionsCommand = "getNetworkConditions" ;
7688
7789 /// <summary>
7890 /// Command for setting the simulated network conditions in a driver for a Chromium-based browser.
7991 /// </summary>
92+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
8093 public static readonly string SetNetworkConditionsCommand = "setNetworkConditions" ;
8194
8295 /// <summary>
8396 /// Command for deleting the simulated network conditions in a driver for a Chromium-based browser.
8497 /// </summary>
98+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
8599 public static readonly string DeleteNetworkConditionsCommand = "deleteNetworkConditions" ;
86100
87101 /// <summary>
88102 /// Command for executing a Chrome DevTools Protocol command in a driver for a Chromium-based browser.
89103 /// </summary>
104+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
90105 public static readonly string SendChromeCommand = "sendChromeCommand" ;
91106
92107 /// <summary>
93108 /// Command for executing a Chrome DevTools Protocol command that returns a result in a driver for a Chromium-based browser.
94109 /// </summary>
110+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
95111 public static readonly string SendChromeCommandWithResult = "sendChromeCommandWithResult" ;
96112
97113 /// <summary>
98114 /// Command for launching an app in a driver for a Chromium-based browser.
99115 /// </summary>
116+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
100117 public static readonly string LaunchAppCommand = "launchAppCommand" ;
101118
102119 /// <summary>
103120 /// Command for setting permissions in a driver for a Chromium-based browser.
104121 /// </summary>
122+ [ Obsolete ( "This field will be made protected in v4.44." ) ]
105123 public static readonly string SetPermissionCommand = "setPermission" ;
106124
107125 private readonly string optionsCapabilityName ;
0 commit comments