Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dotnet/src/webdriver/Internal/Base64UrlEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
// </copyright>

using System;
using System.ComponentModel;

#nullable enable

Expand All @@ -33,6 +34,7 @@ namespace OpenQA.Selenium.Internal
/// <summary>
/// Encodes and Decodes strings as Base64Url encoding.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static class Base64UrlEncoder
{
private const char base64PadCharacter = '=';
Expand Down
6 changes: 5 additions & 1 deletion dotnet/src/webdriver/Internal/PortUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,18 @@
// under the License.
// </copyright>

using System.ComponentModel;
using System.Net;
using System.Net.Sockets;

#nullable enable

namespace OpenQA.Selenium.Internal
{
/// <summary>
/// Encapsulates methods for working with ports.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static class PortUtilities
{
/// <summary>
Expand All @@ -42,7 +46,7 @@ public static int FindFreePort()
{
IPEndPoint socketEndPoint = new IPEndPoint(IPAddress.Any, 0);
portSocket.Bind(socketEndPoint);
socketEndPoint = (IPEndPoint)portSocket.LocalEndPoint;
socketEndPoint = (IPEndPoint)portSocket.LocalEndPoint!;
listeningPort = socketEndPoint.Port;
}
finally
Expand Down
2 changes: 2 additions & 0 deletions dotnet/src/webdriver/Internal/ReturnedCookie.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@
// </copyright>

using System;
using System.ComponentModel;
using System.Globalization;

namespace OpenQA.Selenium.Internal
{
/// <summary>
/// Represents a cookie returned to the driver by the browser.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public class ReturnedCookie : Cookie
{

Expand Down