diff --git a/dotnet/src/webdriver/IHasSessionId.cs b/dotnet/src/webdriver/IHasSessionId.cs index 100aabaaf316a..4c4863c7b7e81 100644 --- a/dotnet/src/webdriver/IHasSessionId.cs +++ b/dotnet/src/webdriver/IHasSessionId.cs @@ -17,6 +17,8 @@ // under the License. // +#nullable enable + namespace OpenQA.Selenium { /// diff --git a/dotnet/src/webdriver/WebDriver.cs b/dotnet/src/webdriver/WebDriver.cs index b009cca71a08b..c83543e6f02fb 100644 --- a/dotnet/src/webdriver/WebDriver.cs +++ b/dotnet/src/webdriver/WebDriver.cs @@ -184,13 +184,13 @@ public ReadOnlyCollection WindowHandles /// public bool IsActionExecutor => true; +#nullable enable + /// - /// Gets the for the current session of this driver. + /// Gets the for the current session of this driver. /// public SessionId SessionId { get; private set; } -#nullable enable - /// /// Gets or sets the responsible for detecting /// sequences of keystrokes representing file paths and names. @@ -715,8 +715,6 @@ protected bool RegisterInternalDriverCommand(string commandName, [NotNullWhen(tr return this.RegisterDriverCommand(commandName, commandInfo, true); } -#nullable restore - /// /// Stops the client from running /// @@ -747,8 +745,6 @@ protected virtual void Dispose(bool disposing) this.CommandExecutor.Dispose(); } -#nullable enable - private static void UnpackAndThrowOnError(Response errorResponse, string commandToExecute) { // Check the status code of the error, and only handle if not success.