Skip to content

Commit 34cbe19

Browse files
authored
Merge branch 'trunk' into add-selenium-manager-linux-arm64
2 parents 38654e3 + 2a74c64 commit 34cbe19

File tree

23 files changed

+1104
-150
lines changed

23 files changed

+1104
-150
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ py/docs/source/**/*
7878
!py/docs/source/conf.py
7979
!py/docs/source/*.rst
8080
py/build/
81-
py/LICENSE
8281
py/pytestdebug.log
8382
py/python.iml
8483
selenium.egg-info/

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,6 @@ To update API documentation for a specific language: `./go <language>:docs`
528528

529529
To update all documentation: `./go all:docs`
530530

531-
Note that JavaScript generation is [currently broken](https://github.com/SeleniumHQ/selenium/issues/10185).
532-
533531

534532
## Releasing
535533

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>
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
// <copyright file="ChromiumDriverLogLevel.cs" company="Selenium Committers">
2+
// Licensed to the Software Freedom Conservancy (SFC) under one
3+
// or more contributor license agreements. See the NOTICE file
4+
// distributed with this work for additional information
5+
// regarding copyright ownership. The SFC licenses this file
6+
// to you under the Apache License, Version 2.0 (the
7+
// "License"); you may not use this file except in compliance
8+
// with the License. You may obtain a copy of the License at
9+
//
10+
// http://www.apache.org/licenses/LICENSE-2.0
11+
//
12+
// Unless required by applicable law or agreed to in writing,
13+
// software distributed under the License is distributed on an
14+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
// KIND, either express or implied. See the License for the
16+
// specific language governing permissions and limitations
17+
// under the License.
18+
// </copyright>
19+
20+
namespace OpenQA.Selenium.Chromium;
21+
22+
/// <summary>
23+
/// Represents the valid values of logging levels available with the Chromium based drivers.
24+
/// </summary>
25+
public enum ChromiumDriverLogLevel
26+
{
27+
/// <summary>
28+
/// Represents the value All, the most detailed logging level available.
29+
/// </summary>
30+
All,
31+
32+
/// <summary>
33+
/// Represents the Debug value
34+
/// </summary>
35+
Debug,
36+
37+
/// <summary>
38+
/// Represents the Info value
39+
/// </summary>
40+
Info,
41+
42+
/// <summary>
43+
/// Represents the Warning value
44+
/// </summary>
45+
Warning ,
46+
47+
/// <summary>
48+
/// Represents the Severe value
49+
/// </summary>
50+
Severe,
51+
52+
/// <summary>
53+
/// Represents the Off value, nothing gets logged
54+
/// </summary>
55+
Off,
56+
57+
/// <summary>
58+
/// Represents that the logging value is unspecified, and should be the default level.
59+
/// </summary>
60+
Default
61+
}

dotnet/src/webdriver/Chromium/ChromiumDriverService.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,9 @@ protected ChromiumDriverService(string? executablePath, string? executableFileNa
8585
public bool EnableAppendLog { get; set; }
8686

8787
/// <summary>
88-
/// <para>Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the Chrome driver.</para>
89-
/// <para>A value of <see langword="null"/> or <see cref="string.Empty"/> means only the local loopback address can connect.</para>
88+
/// Gets or sets the level at which log output is displayed.
9089
/// </summary>
91-
[Obsolete($"Use {nameof(AllowedIPAddresses)}")]
92-
public string? WhitelistedIPAddresses
93-
{
94-
get => this.AllowedIPAddresses;
95-
set => this.AllowedIPAddresses = value;
96-
}
90+
public ChromiumDriverLogLevel LogLevel { get; set; } = ChromiumDriverLogLevel.Default;
9791

9892
/// <summary>
9993
/// <para>Gets or sets the comma-delimited list of IP addresses that are approved to connect to this instance of the Chrome driver.</para>
@@ -154,6 +148,15 @@ protected override string CommandLineArguments
154148
argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " -allowed-ips={0}", this.AllowedIPAddresses));
155149
}
156150

151+
if (this.LogLevel != ChromiumDriverLogLevel.Default)
152+
{
153+
if (Enum.IsDefined(typeof(ChromiumDriverLogLevel), this.LogLevel))
154+
{
155+
argsBuilder.Append(string.Format(CultureInfo.InvariantCulture, " --log-level={0}", this.LogLevel.ToString().ToUpperInvariant()));
156+
}
157+
}
158+
159+
157160
return argsBuilder.ToString();
158161
}
159162
}

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>

0 commit comments

Comments
 (0)