diff --git a/dotnet/src/webdriver/Response.cs b/dotnet/src/webdriver/Response.cs index 2cbb0085b3ece..40993c99de2b3 100644 --- a/dotnet/src/webdriver/Response.cs +++ b/dotnet/src/webdriver/Response.cs @@ -158,24 +158,24 @@ public static Response FromErrorJson(string value) if (!deserializedResponse.TryGetValue("value", out var valueObject)) { - throw new WebDriverException($"The 'value' property was not found in the response:{Environment.NewLine}{value}"); + throw new WebDriverException($"The 'value' property was not found in the response:{System.Environment.NewLine}{value}"); } if (valueObject is not Dictionary valueDictionary) { - throw new WebDriverException($"The 'value' property is not a dictionary of {Environment.NewLine}{value}"); + throw new WebDriverException($"The 'value' property is not a dictionary of {System.Environment.NewLine}{value}"); } response.Value = valueDictionary; if (!valueDictionary.TryGetValue("error", out var errorObject)) { - throw new WebDriverException($"The 'value > error' property was not found in the response:{Environment.NewLine}{value}"); + throw new WebDriverException($"The 'value > error' property was not found in the response:{System.Environment.NewLine}{value}"); } if (errorObject is not string) { - throw new WebDriverException($"The 'value > error' property is not a string{Environment.NewLine}{value}"); + throw new WebDriverException($"The 'value > error' property is not a string{System.Environment.NewLine}{value}"); } response.Status = WebDriverError.ResultFromError(errorObject.ToString());