Skip to content

Commit b981b71

Browse files
authored
[dotnet] Remove long awaited obsolete members (#16121)
1 parent 8cf788f commit b981b71

File tree

10 files changed

+0
-120
lines changed

10 files changed

+0
-120
lines changed

dotnet/src/webdriver/Chromium/ChromiumDriver.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -345,19 +345,6 @@ public DevToolsSession GetDevToolsSession(DevToolsOptions options)
345345
return this.devToolsSession;
346346
}
347347

348-
/// <summary>
349-
/// Creates a session to communicate with a browser using the Chromium Developer Tools debugging protocol.
350-
/// </summary>
351-
/// <param name="devToolsProtocolVersion">The version of the Chromium Developer Tools protocol to use. Defaults to autodetect the protocol version.</param>
352-
/// <returns>The active session to use to communicate with the Chromium Developer Tools debugging protocol.</returns>
353-
[Obsolete("Use GetDevToolsSession(DevToolsOptions options)")]
354-
[RequiresUnreferencedCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
355-
[RequiresDynamicCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
356-
public DevToolsSession GetDevToolsSession(int devToolsProtocolVersion)
357-
{
358-
return GetDevToolsSession(new DevToolsOptions() { ProtocolVersion = devToolsProtocolVersion });
359-
}
360-
361348
/// <summary>
362349
/// Closes a DevTools session.
363350
/// </summary>

dotnet/src/webdriver/Chromium/ChromiumDriverService.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,6 @@ protected ChromiumDriverService(string? executablePath, string? executableFileNa
8989
/// </summary>
9090
public ChromiumDriverLogLevel LogLevel { get; set; } = ChromiumDriverLogLevel.Default;
9191

92-
/// <summary>
93-
/// <para>Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the Chrome driver.</para>
94-
/// <para>A value of <see langword="null"/> or <see cref="string.Empty"/> means only the local loopback address can connect.</para>
95-
/// </summary>
96-
[Obsolete($"Use {nameof(AllowedIPAddresses)}")]
97-
public string? WhitelistedIPAddresses
98-
{
99-
get => this.AllowedIPAddresses;
100-
set => this.AllowedIPAddresses = value;
101-
}
102-
10392
/// <summary>
10493
/// <para>Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the Chrome driver.</para>
10594
/// <para>A value of <see langword="null"/> or <see cref="string.Empty"/> means only the local loopback address can connect.</para>

dotnet/src/webdriver/DevTools/DevToolsSession.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,6 @@ public class DevToolsSession : IDevToolsSession
6262

6363
private readonly static ILogger logger = Internal.Logging.Log.GetLogger<DevToolsSession>();
6464

65-
/// <summary>
66-
/// Initializes a new instance of the DevToolsSession class, using the specified WebSocket endpoint.
67-
/// </summary>
68-
/// <param name="endpointAddress"></param>
69-
[Obsolete("Use DevToolsSession(string endpointAddress, DevToolsOptions options)")]
70-
public DevToolsSession(string endpointAddress) : this(endpointAddress, new DevToolsOptions()) { }
71-
7265
/// <summary>
7366
/// Initializes a new instance of the DevToolsSession class, using the specified WebSocket endpoint and specified DevTools options.
7467
/// </summary>

dotnet/src/webdriver/DevTools/IDevTools.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,6 @@ public interface IDevTools
5050
[RequiresDynamicCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
5151
DevToolsSession GetDevToolsSession(DevToolsOptions options);
5252

53-
/// <summary>
54-
/// Creates a session to communicate with a browser using a specific version of the Developer Tools debugging protocol.
55-
/// </summary>
56-
/// <param name="protocolVersion">The specific version of the Developer Tools debugging protocol to use.</param>
57-
/// <returns>The active session to use to communicate with the Developer Tools debugging protocol.</returns>
58-
[Obsolete("Use GetDevToolsSession(DevToolsOptions options)")]
59-
[RequiresUnreferencedCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
60-
[RequiresDynamicCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
61-
DevToolsSession GetDevToolsSession(int protocolVersion);
62-
6353
/// <summary>
6454
/// Closes a DevTools session
6555
/// </summary>

dotnet/src/webdriver/Edge/EdgeDriverService.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,6 @@ protected override DriverOptions GetDefaultDriverOptions()
4848
return new EdgeOptions();
4949
}
5050

51-
/// <summary>
52-
/// Gets or sets a value indicating whether the service should use verbose logging.
53-
/// </summary>
54-
[Obsolete("Use EnableVerboseLogging")]
55-
public bool UseVerboseLogging
56-
{
57-
get => this.EnableVerboseLogging;
58-
set => this.EnableVerboseLogging = value;
59-
}
60-
6151
/// <summary>
6252
/// Creates a default instance of the EdgeDriverService.
6353
/// </summary>

dotnet/src/webdriver/Firefox/FirefoxOptions.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,16 +98,6 @@ public FirefoxOptions()
9898
/// </summary>
9999
public override string? BinaryLocation { get; set; }
100100

101-
/// <summary>
102-
/// Gets or sets the path and file name of the Firefox browser executable.
103-
/// </summary>
104-
[Obsolete("Use BinaryLocation property instead of BrowserExecutableLocation. This one will be removed soon.")]
105-
public string? BrowserExecutableLocation
106-
{
107-
get => this.BinaryLocation;
108-
set => this.BinaryLocation = value;
109-
}
110-
111101
/// <summary>
112102
/// Gets or sets the logging level of the Firefox driver.
113103
/// </summary>

dotnet/src/webdriver/Interactions/ActionSequence.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,6 @@ public ActionSequence(InputDevice device, int initialSize)
6060
/// </summary>
6161
public int Count => this.interactions.Count;
6262

63-
/// <summary>
64-
/// Gets the input device for this Action sequence.
65-
/// </summary>
66-
[Obsolete("This property has been renamed to InputDevice and will be removed in a future version")]
67-
[CLSCompliant(false)]
68-
public InputDevice inputDevice => InputDevice;
69-
7063
/// <summary>
7164
/// Gets the input device for this Action sequence.
7265
/// </summary>

dotnet/src/webdriver/Internal/Logging/ConsoleLogHandler.cs

Lines changed: 0 additions & 28 deletions
This file was deleted.

dotnet/src/webdriver/Remote/RemoteWebDriver.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -496,19 +496,6 @@ public DevToolsSession GetDevToolsSession(DevToolsOptions options)
496496
return this.devToolsSession;
497497
}
498498

499-
/// <summary>
500-
/// Creates a session to communicate with a browser using a specific version of the Developer Tools debugging protocol.
501-
/// </summary>
502-
/// <param name="protocolVersion">The specific version of the Developer Tools debugging protocol to use.</param>
503-
/// <returns>The active session to use to communicate with the Developer Tools debugging protocol.</returns>
504-
[Obsolete("Use GetDevToolsSession(DevToolsOptions options)")]
505-
[RequiresUnreferencedCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
506-
[RequiresDynamicCode(DevToolsSession.CDP_AOTIncompatibilityMessage)]
507-
public DevToolsSession GetDevToolsSession(int protocolVersion)
508-
{
509-
return GetDevToolsSession(new DevToolsOptions() { ProtocolVersion = protocolVersion });
510-
}
511-
512499
/// <summary>
513500
/// Retrieves the downloadable files.
514501
/// </summary>

dotnet/src/webdriver/UserAgent.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,13 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using System;
21-
2220
namespace OpenQA.Selenium.DevTools;
2321

2422
/// <summary>
2523
/// Represents a user agent string.
2624
/// </summary>
2725
public class UserAgent
2826
{
29-
/// <summary>
30-
/// Initializes a new instance of the <see cref="UserAgent"/> type.
31-
/// </summary>
32-
[Obsolete("Use the constructor which sets the userAgentString")]
33-
public UserAgent()
34-
{
35-
UserAgentString = null!;
36-
}
37-
3827
/// <summary>
3928
/// Initializes a new instance of the <see cref="UserAgent"/> type.
4029
/// </summary>

0 commit comments

Comments
 (0)