diff --git a/dotnet/src/support/Events/FindElementEventArgs.cs b/dotnet/src/support/Events/FindElementEventArgs.cs index 4b8097565e681..4fc45a6d409a3 100644 --- a/dotnet/src/support/Events/FindElementEventArgs.cs +++ b/dotnet/src/support/Events/FindElementEventArgs.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/Events/WebDriverExceptionEventArgs.cs b/dotnet/src/support/Events/WebDriverExceptionEventArgs.cs index 06a03ebb02675..8cab5fe3e6a67 100644 --- a/dotnet/src/support/Events/WebDriverExceptionEventArgs.cs +++ b/dotnet/src/support/Events/WebDriverExceptionEventArgs.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/Events/WebDriverNavigationEventArgs.cs b/dotnet/src/support/Events/WebDriverNavigationEventArgs.cs index f93d702e836c6..991f7c6978ec8 100644 --- a/dotnet/src/support/Events/WebDriverNavigationEventArgs.cs +++ b/dotnet/src/support/Events/WebDriverNavigationEventArgs.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/Events/WebDriverScriptEventArgs.cs b/dotnet/src/support/Events/WebDriverScriptEventArgs.cs index 640a402df0370..0cc76cf3f0ab2 100644 --- a/dotnet/src/support/Events/WebDriverScriptEventArgs.cs +++ b/dotnet/src/support/Events/WebDriverScriptEventArgs.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/Events/WebElementEventArgs.cs b/dotnet/src/support/Events/WebElementEventArgs.cs index 614c432bef2d6..cda2fd63a7dac 100644 --- a/dotnet/src/support/Events/WebElementEventArgs.cs +++ b/dotnet/src/support/Events/WebElementEventArgs.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/Events/WebElementValueEventArgs.cs b/dotnet/src/support/Events/WebElementValueEventArgs.cs index 86c6e7890000a..0f3eba08861fe 100644 --- a/dotnet/src/support/Events/WebElementValueEventArgs.cs +++ b/dotnet/src/support/Events/WebElementValueEventArgs.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/Extensions/WebDriverExtensions.cs b/dotnet/src/support/Extensions/WebDriverExtensions.cs index 5a2db2f3f92b4..4c4fbc55dc574 100644 --- a/dotnet/src/support/Extensions/WebDriverExtensions.cs +++ b/dotnet/src/support/Extensions/WebDriverExtensions.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -111,7 +111,7 @@ public static T ExecuteJavaScript(this IWebDriver driver, string script, para { result = (T)Convert.ChangeType(value, type); } - catch(Exception exp) + catch (Exception exp) { throw new WebDriverException("Script returned a value, but the result could not be cast to the desired type", exp); } diff --git a/dotnet/src/support/UI/ILoadableComponent.cs b/dotnet/src/support/UI/ILoadableComponent.cs index 3c2406173ecc8..332ef3c537638 100644 --- a/dotnet/src/support/UI/ILoadableComponent.cs +++ b/dotnet/src/support/UI/ILoadableComponent.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/UI/LoadableComponentException.cs b/dotnet/src/support/UI/LoadableComponentException.cs index 79833aa917be7..64354a240ac12 100644 --- a/dotnet/src/support/UI/LoadableComponentException.cs +++ b/dotnet/src/support/UI/LoadableComponentException.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/UI/LoadableComponent{T}.cs b/dotnet/src/support/UI/LoadableComponent{T}.cs index 49de0a90e1f09..458d850147bf1 100644 --- a/dotnet/src/support/UI/LoadableComponent{T}.cs +++ b/dotnet/src/support/UI/LoadableComponent{T}.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/UI/PopupWindowFinder.cs b/dotnet/src/support/UI/PopupWindowFinder.cs index 078df0b08a7d3..d1b029b3e04ce 100644 --- a/dotnet/src/support/UI/PopupWindowFinder.cs +++ b/dotnet/src/support/UI/PopupWindowFinder.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/support/UI/SelectElement.cs b/dotnet/src/support/UI/SelectElement.cs index 3d1b078acf3e2..d57cc36f50190 100644 --- a/dotnet/src/support/UI/SelectElement.cs +++ b/dotnet/src/support/UI/SelectElement.cs @@ -446,7 +446,8 @@ private static string GetLongestSubstringWithoutSpace(string s) private static void SetSelected(IWebElement option, bool select) { - if (select && !option.Enabled) { + if (select && !option.Enabled) + { throw new InvalidOperationException("You may not select a disabled option"); } diff --git a/dotnet/src/support/UI/SlowLoadableComponent{T}.cs b/dotnet/src/support/UI/SlowLoadableComponent{T}.cs index 1ee0d879eaea3..562d290c1575f 100644 --- a/dotnet/src/support/UI/SlowLoadableComponent{T}.cs +++ b/dotnet/src/support/UI/SlowLoadableComponent{T}.cs @@ -35,7 +35,7 @@ namespace OpenQA.Selenium.Support.UI /// The type to be returned (normally the subclass' type) public abstract class SlowLoadableComponent : LoadableComponent where T : SlowLoadableComponent - { + { private readonly IClock clock; private readonly TimeSpan timeout; private TimeSpan sleepInterval = TimeSpan.FromMilliseconds(200); diff --git a/dotnet/src/webdriver/CapabilityType.cs b/dotnet/src/webdriver/CapabilityType.cs index 5d8a5533f831a..d47d62ad272ab 100644 --- a/dotnet/src/webdriver/CapabilityType.cs +++ b/dotnet/src/webdriver/CapabilityType.cs @@ -144,7 +144,7 @@ public static class CapabilityType /// Capability name used to indicate whether the driver supports setting the browser window's size and position. /// public static readonly string SetWindowRect = "setWindowRect"; - + /// /// Capability name used to get or set timeout values when creating a session. /// diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs index 38b09ca3e998f..1c5fed72bd959 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs @@ -149,7 +149,8 @@ protected static IReadOnlyDictionary ChromiumCustomCommands /// private static ICommandExecutor GenerateDriverServiceCommandExecutor(DriverService service, DriverOptions options, TimeSpan commandTimeout) { - if (service.DriverServicePath == null) { + if (service.DriverServicePath == null) + { string fullServicePath = DriverFinder.FullPath(options); service.DriverServicePath = Path.GetDirectoryName(fullServicePath); service.DriverServiceExecutableName = Path.GetFileName(fullServicePath); diff --git a/dotnet/src/webdriver/CommandInfoRepository.cs b/dotnet/src/webdriver/CommandInfoRepository.cs index b47ec1ebe511e..0c6c46f1c4a3c 100644 --- a/dotnet/src/webdriver/CommandInfoRepository.cs +++ b/dotnet/src/webdriver/CommandInfoRepository.cs @@ -67,7 +67,7 @@ public bool IsCommandNameDefined(string commandName) /// The name of the command defined by the command info, or if the command is not defined. public string FindCommandName(CommandInfo commandInfo) { - foreach(KeyValuePair pair in this.commandDictionary) + foreach (KeyValuePair pair in this.commandDictionary) { if (pair.Value == commandInfo) { diff --git a/dotnet/src/webdriver/Cookie.cs b/dotnet/src/webdriver/Cookie.cs index f0b04d42b7577..c0af9239b2f3a 100644 --- a/dotnet/src/webdriver/Cookie.cs +++ b/dotnet/src/webdriver/Cookie.cs @@ -40,7 +40,7 @@ public class Cookie private bool isHttpOnly; private bool secure; private DateTime? cookieExpiry; - private readonly string[] sameSiteValues = {"Strict", "Lax", "None"}; + private readonly string[] sameSiteValues = { "Strict", "Lax", "None" }; /// /// Initializes a new instance of the class with a specific name and value. diff --git a/dotnet/src/webdriver/DefaultFileDetector.cs b/dotnet/src/webdriver/DefaultFileDetector.cs index 45c5c3f2bdb3c..b391d385af6be 100644 --- a/dotnet/src/webdriver/DefaultFileDetector.cs +++ b/dotnet/src/webdriver/DefaultFileDetector.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/DevTools/DevToolsSession.cs b/dotnet/src/webdriver/DevTools/DevToolsSession.cs index d42c9568219b8..2e2eb94b72b5c 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsSession.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsSession.cs @@ -461,7 +461,7 @@ private void MonitorMessageQueue() { this.ProcessMessage(message); } - catch(Exception ex) + catch (Exception ex) { LogError("Unexpected error occured while processing message: {0}", ex); } diff --git a/dotnet/src/webdriver/DevTools/v115/V115Target.cs b/dotnet/src/webdriver/DevTools/v115/V115Target.cs index 1e4f10f3ac885..23c7831b2d294 100644 --- a/dotnet/src/webdriver/DevTools/v115/V115Target.cs +++ b/dotnet/src/webdriver/DevTools/v115/V115Target.cs @@ -58,7 +58,7 @@ public override async Task> GetTargets(Object set { settings = new GetTargetsCommandSettings(); } - var response = await adapter.GetTargets((GetTargetsCommandSettings) settings).ConfigureAwait(false); + var response = await adapter.GetTargets((GetTargetsCommandSettings)settings).ConfigureAwait(false); for (int i = 0; i < response.TargetInfos.Length; i++) { var targetInfo = response.TargetInfos[i]; diff --git a/dotnet/src/webdriver/DevTools/v116/V116Target.cs b/dotnet/src/webdriver/DevTools/v116/V116Target.cs index b2c3236c9ce26..77a68d241797c 100644 --- a/dotnet/src/webdriver/DevTools/v116/V116Target.cs +++ b/dotnet/src/webdriver/DevTools/v116/V116Target.cs @@ -58,7 +58,7 @@ public override async Task> GetTargets(Object set { settings = new GetTargetsCommandSettings(); } - var response = await adapter.GetTargets((GetTargetsCommandSettings) settings).ConfigureAwait(false); + var response = await adapter.GetTargets((GetTargetsCommandSettings)settings).ConfigureAwait(false); for (int i = 0; i < response.TargetInfos.Length; i++) { var targetInfo = response.TargetInfos[i]; diff --git a/dotnet/src/webdriver/DevTools/v117/V117Target.cs b/dotnet/src/webdriver/DevTools/v117/V117Target.cs index 86d796bda8fab..2c39c07693937 100644 --- a/dotnet/src/webdriver/DevTools/v117/V117Target.cs +++ b/dotnet/src/webdriver/DevTools/v117/V117Target.cs @@ -58,7 +58,7 @@ public override async Task> GetTargets(Object set { settings = new GetTargetsCommandSettings(); } - var response = await adapter.GetTargets((GetTargetsCommandSettings) settings).ConfigureAwait(false); + var response = await adapter.GetTargets((GetTargetsCommandSettings)settings).ConfigureAwait(false); for (int i = 0; i < response.TargetInfos.Length; i++) { var targetInfo = response.TargetInfos[i]; diff --git a/dotnet/src/webdriver/DriverFinder.cs b/dotnet/src/webdriver/DriverFinder.cs index 4d46ee91d70dc..b91c3333fcb43 100644 --- a/dotnet/src/webdriver/DriverFinder.cs +++ b/dotnet/src/webdriver/DriverFinder.cs @@ -51,7 +51,8 @@ public static string FullPath(DriverOptions options) if (executablePath == null) { message = $"Unable to locate or obtain {options.BrowserName} driver"; - } else if (!File.Exists(executablePath)) + } + else if (!File.Exists(executablePath)) { message = $"{options.BrowserName} driver located at {executablePath}, but invalid"; } diff --git a/dotnet/src/webdriver/Firefox/FirefoxDriverLogLevel.cs b/dotnet/src/webdriver/Firefox/FirefoxDriverLogLevel.cs index 98a239a93aaaf..9bc590061d1d6 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxDriverLogLevel.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxDriverLogLevel.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Firefox/Internal/IniFileReader.cs b/dotnet/src/webdriver/Firefox/Internal/IniFileReader.cs index 0984892fb774a..1afe85ebc9986 100644 --- a/dotnet/src/webdriver/Firefox/Internal/IniFileReader.cs +++ b/dotnet/src/webdriver/Firefox/Internal/IniFileReader.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Firefox/Preferences.cs b/dotnet/src/webdriver/Firefox/Preferences.cs index b7b3b98af07d4..366b96b53fa0a 100644 --- a/dotnet/src/webdriver/Firefox/Preferences.cs +++ b/dotnet/src/webdriver/Firefox/Preferences.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/IAlert.cs b/dotnet/src/webdriver/IAlert.cs index 9afd67e8702ed..0e7e54d4d01c0 100644 --- a/dotnet/src/webdriver/IAlert.cs +++ b/dotnet/src/webdriver/IAlert.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/IAllowsFileDetection.cs b/dotnet/src/webdriver/IAllowsFileDetection.cs index 4fa7c705d4fd9..5fbe49d9dae47 100644 --- a/dotnet/src/webdriver/IAllowsFileDetection.cs +++ b/dotnet/src/webdriver/IAllowsFileDetection.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/ICookieJar.cs b/dotnet/src/webdriver/ICookieJar.cs index 325cf7810b2fd..82b919a33959e 100644 --- a/dotnet/src/webdriver/ICookieJar.cs +++ b/dotnet/src/webdriver/ICookieJar.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/IE/InternetExplorerDriver.cs b/dotnet/src/webdriver/IE/InternetExplorerDriver.cs index 04640cc48e976..56ca024befeb4 100644 --- a/dotnet/src/webdriver/IE/InternetExplorerDriver.cs +++ b/dotnet/src/webdriver/IE/InternetExplorerDriver.cs @@ -154,7 +154,8 @@ public InternetExplorerDriver(InternetExplorerDriverService service, InternetExp /// private static ICommandExecutor GenerateDriverServiceCommandExecutor(DriverService service, DriverOptions options, TimeSpan commandTimeout) { - if (service.DriverServicePath == null) { + if (service.DriverServicePath == null) + { string fullServicePath = DriverFinder.FullPath(options); service.DriverServicePath = Path.GetDirectoryName(fullServicePath); service.DriverServiceExecutableName = Path.GetFileName(fullServicePath); diff --git a/dotnet/src/webdriver/IE/InternetExplorerDriverLogLevel.cs b/dotnet/src/webdriver/IE/InternetExplorerDriverLogLevel.cs index ed0b482bc7422..606d785cf400e 100644 --- a/dotnet/src/webdriver/IE/InternetExplorerDriverLogLevel.cs +++ b/dotnet/src/webdriver/IE/InternetExplorerDriverLogLevel.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/IFileDetector.cs b/dotnet/src/webdriver/IFileDetector.cs index bd900ac1eea8c..3a8ea7cf13880 100644 --- a/dotnet/src/webdriver/IFileDetector.cs +++ b/dotnet/src/webdriver/IFileDetector.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/IHasCapabilities.cs b/dotnet/src/webdriver/IHasCapabilities.cs index d9fda9d2f459a..77905fe38c530 100644 --- a/dotnet/src/webdriver/IHasCapabilities.cs +++ b/dotnet/src/webdriver/IHasCapabilities.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/ILogs.cs b/dotnet/src/webdriver/ILogs.cs index 3e48f7a47e0d5..89a00aa0a39f5 100644 --- a/dotnet/src/webdriver/ILogs.cs +++ b/dotnet/src/webdriver/ILogs.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/IRotatable.cs b/dotnet/src/webdriver/IRotatable.cs index 1cd3f4f6d73a9..3cc09b09e3e26 100644 --- a/dotnet/src/webdriver/IRotatable.cs +++ b/dotnet/src/webdriver/IRotatable.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/ITakesScreenshot.cs b/dotnet/src/webdriver/ITakesScreenshot.cs index 9413a4be941a5..753a6ddd27a8d 100644 --- a/dotnet/src/webdriver/ITakesScreenshot.cs +++ b/dotnet/src/webdriver/ITakesScreenshot.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Interactions/IAction.cs b/dotnet/src/webdriver/Interactions/IAction.cs index d14bb32a2df6a..8042a866c27ea 100644 --- a/dotnet/src/webdriver/Interactions/IAction.cs +++ b/dotnet/src/webdriver/Interactions/IAction.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Interactions/ICoordinates.cs b/dotnet/src/webdriver/Interactions/ICoordinates.cs index 6f5095deccce6..91b825fea3d08 100644 --- a/dotnet/src/webdriver/Interactions/ICoordinates.cs +++ b/dotnet/src/webdriver/Interactions/ICoordinates.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Interactions/Interaction.cs b/dotnet/src/webdriver/Interactions/Interaction.cs index 1b314e6e320d4..479fbe2cb3b8a 100644 --- a/dotnet/src/webdriver/Interactions/Interaction.cs +++ b/dotnet/src/webdriver/Interactions/Interaction.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Interactions/WheelInputDevice.cs b/dotnet/src/webdriver/Interactions/WheelInputDevice.cs index 1175d92b5d4b6..db6e32f3126ed 100644 --- a/dotnet/src/webdriver/Interactions/WheelInputDevice.cs +++ b/dotnet/src/webdriver/Interactions/WheelInputDevice.cs @@ -167,7 +167,7 @@ private class WheelScrollInteraction : Interaction private CoordinateOrigin origin = CoordinateOrigin.Viewport; public WheelScrollInteraction(InputDevice sourceDevice, IWebElement target, CoordinateOrigin origin, int x, int y, int deltaX, int deltaY, TimeSpan duration) - :base(sourceDevice) + : base(sourceDevice) { if (target != null) { diff --git a/dotnet/src/webdriver/Internal/PortUtilities.cs b/dotnet/src/webdriver/Internal/PortUtilities.cs index 46e327692e02e..6238a72a845af 100644 --- a/dotnet/src/webdriver/Internal/PortUtilities.cs +++ b/dotnet/src/webdriver/Internal/PortUtilities.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Internal/ReturnedCookie.cs b/dotnet/src/webdriver/Internal/ReturnedCookie.cs index a55ca279edc55..cc2283f505da1 100644 --- a/dotnet/src/webdriver/Internal/ReturnedCookie.cs +++ b/dotnet/src/webdriver/Internal/ReturnedCookie.cs @@ -26,7 +26,7 @@ namespace OpenQA.Selenium.Internal /// public class ReturnedCookie : Cookie { - + /// /// Initializes a new instance of the class with a specific name, /// value, domain, path and expiration date. @@ -64,7 +64,7 @@ public ReturnedCookie(string name, string value, string domain, string path, Dat public ReturnedCookie(string name, string value, string domain, string path, DateTime? expiry, bool isSecure, bool isHttpOnly, string sameSite) : base(name, value, domain, path, expiry, isSecure, isHttpOnly, sameSite) { - + } /// diff --git a/dotnet/src/webdriver/LogEntry.cs b/dotnet/src/webdriver/LogEntry.cs index 040ea9fcb142d..a33ad6ba866db 100644 --- a/dotnet/src/webdriver/LogEntry.cs +++ b/dotnet/src/webdriver/LogEntry.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/LogLevel.cs b/dotnet/src/webdriver/LogLevel.cs index 62ec1e12f6c24..6e91c73bbc96a 100644 --- a/dotnet/src/webdriver/LogLevel.cs +++ b/dotnet/src/webdriver/LogLevel.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/LogType.cs b/dotnet/src/webdriver/LogType.cs index daa9e07459d44..079bb7ebaf70c 100644 --- a/dotnet/src/webdriver/LogType.cs +++ b/dotnet/src/webdriver/LogType.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/NetworkRequestSentEventArgs.cs b/dotnet/src/webdriver/NetworkRequestSentEventArgs.cs index 678bcfa0b860d..424d2695af7f1 100644 --- a/dotnet/src/webdriver/NetworkRequestSentEventArgs.cs +++ b/dotnet/src/webdriver/NetworkRequestSentEventArgs.cs @@ -52,7 +52,7 @@ public NetworkRequestSentEventArgs(HttpRequestData requestData) /// Gets the internal request ID of the network request. /// public string RequestId => requestId; - + /// /// Gets the URL of the network request. /// diff --git a/dotnet/src/webdriver/NoSuchFrameException.cs b/dotnet/src/webdriver/NoSuchFrameException.cs index 65929a8856c0f..6cd8d57d0894d 100644 --- a/dotnet/src/webdriver/NoSuchFrameException.cs +++ b/dotnet/src/webdriver/NoSuchFrameException.cs @@ -69,5 +69,5 @@ protected NoSuchFrameException(SerializationInfo info, StreamingContext context) : base(info, context) { } -} + } } diff --git a/dotnet/src/webdriver/NoSuchShadowRootException.cs b/dotnet/src/webdriver/NoSuchShadowRootException.cs index 14932e0bc7763..e008da17ec11b 100644 --- a/dotnet/src/webdriver/NoSuchShadowRootException.cs +++ b/dotnet/src/webdriver/NoSuchShadowRootException.cs @@ -69,5 +69,5 @@ protected NoSuchShadowRootException(SerializationInfo info, StreamingContext con : base(info, context) { } -} + } } diff --git a/dotnet/src/webdriver/Platform.cs b/dotnet/src/webdriver/Platform.cs index 975fe64a71f85..5b2b7f5d87a41 100644 --- a/dotnet/src/webdriver/Platform.cs +++ b/dotnet/src/webdriver/Platform.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Remote/ICommandServer.cs b/dotnet/src/webdriver/Remote/ICommandServer.cs index 303d0c9112258..5f3c3674d8d9f 100644 --- a/dotnet/src/webdriver/Remote/ICommandServer.cs +++ b/dotnet/src/webdriver/Remote/ICommandServer.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Remote/LocalFileDetector.cs b/dotnet/src/webdriver/Remote/LocalFileDetector.cs index 2536123480110..de96d629207e5 100644 --- a/dotnet/src/webdriver/Remote/LocalFileDetector.cs +++ b/dotnet/src/webdriver/Remote/LocalFileDetector.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs b/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs index f5d45e701f859..415ad643bca40 100644 --- a/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs +++ b/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs @@ -42,7 +42,7 @@ private ReadOnlyDesiredCapabilities() internal ReadOnlyDesiredCapabilities(DesiredCapabilities desiredCapabilities) { IDictionary internalDictionary = desiredCapabilities.CapabilitiesDictionary; - foreach(KeyValuePair keyValuePair in internalDictionary) + foreach (KeyValuePair keyValuePair in internalDictionary) { this.capabilities[keyValuePair.Key] = keyValuePair.Value; } diff --git a/dotnet/src/webdriver/Remote/RemoteWebDriver.cs b/dotnet/src/webdriver/Remote/RemoteWebDriver.cs index 73275ae52b81f..da18d3c6a7d12 100644 --- a/dotnet/src/webdriver/Remote/RemoteWebDriver.cs +++ b/dotnet/src/webdriver/Remote/RemoteWebDriver.cs @@ -129,7 +129,7 @@ public RemoteWebDriver(Uri remoteAddress, ICapabilities desiredCapabilities, Tim /// An object which executes commands for the driver. /// An object containing the desired capabilities of the browser. public RemoteWebDriver(ICommandExecutor commandExecutor, ICapabilities desiredCapabilities) - :base(commandExecutor, desiredCapabilities) + : base(commandExecutor, desiredCapabilities) { } diff --git a/dotnet/src/webdriver/Safari/SafariDriver.cs b/dotnet/src/webdriver/Safari/SafariDriver.cs index 4a83b74dea62c..4660441a30060 100644 --- a/dotnet/src/webdriver/Safari/SafariDriver.cs +++ b/dotnet/src/webdriver/Safari/SafariDriver.cs @@ -160,7 +160,8 @@ public SafariDriver(SafariDriverService service, SafariOptions options, TimeSpan /// private static ICommandExecutor GenerateDriverServiceCommandExecutor(DriverService service, DriverOptions options, TimeSpan commandTimeout) { - if (service.DriverServicePath == null) { + if (service.DriverServicePath == null) + { string fullServicePath = DriverFinder.FullPath(options); service.DriverServicePath = Path.GetDirectoryName(fullServicePath); service.DriverServiceExecutableName = Path.GetFileName(fullServicePath); diff --git a/dotnet/src/webdriver/ScreenOrientation.cs b/dotnet/src/webdriver/ScreenOrientation.cs index ccedcc0c5dc07..e988d55e72700 100644 --- a/dotnet/src/webdriver/ScreenOrientation.cs +++ b/dotnet/src/webdriver/ScreenOrientation.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Support/IClock.cs b/dotnet/src/webdriver/Support/IClock.cs index 55ae1f095d590..ce9ec446e48d6 100644 --- a/dotnet/src/webdriver/Support/IClock.cs +++ b/dotnet/src/webdriver/Support/IClock.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -44,4 +44,4 @@ public interface IClock /// if the current date and time is before the specified date and time; otherwise, . bool IsNowBefore(DateTime otherDateTime); } -} \ No newline at end of file +} diff --git a/dotnet/src/webdriver/Support/IWait{T}.cs b/dotnet/src/webdriver/Support/IWait{T}.cs index 7948c0d9f69cc..05fd9f7c38be6 100644 --- a/dotnet/src/webdriver/Support/IWait{T}.cs +++ b/dotnet/src/webdriver/Support/IWait{T}.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -58,4 +58,4 @@ public interface IWait /// Thrown when TResult is not boolean or an object type. TResult Until(Func condition); } -} \ No newline at end of file +} diff --git a/dotnet/src/webdriver/Support/SystemClock.cs b/dotnet/src/webdriver/Support/SystemClock.cs index e7cb0895dbe74..978f27913cda9 100644 --- a/dotnet/src/webdriver/Support/SystemClock.cs +++ b/dotnet/src/webdriver/Support/SystemClock.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information diff --git a/dotnet/src/webdriver/Support/WebDriverWait.cs b/dotnet/src/webdriver/Support/WebDriverWait.cs index fe9b9b395caab..7ab05ace5aedb 100644 --- a/dotnet/src/webdriver/Support/WebDriverWait.cs +++ b/dotnet/src/webdriver/Support/WebDriverWait.cs @@ -1,4 +1,4 @@ -// +// // Licensed to the Software Freedom Conservancy (SFC) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -61,4 +61,4 @@ private static TimeSpan DefaultSleepTimeout get { return TimeSpan.FromMilliseconds(500); } } } -} \ No newline at end of file +} diff --git a/dotnet/src/webdriver/WebDriverError.cs b/dotnet/src/webdriver/WebDriverError.cs index dfb2c90d2b19b..a41451a142a5e 100644 --- a/dotnet/src/webdriver/WebDriverError.cs +++ b/dotnet/src/webdriver/WebDriverError.cs @@ -193,7 +193,7 @@ internal static class WebDriverError /// The converted value. public static WebDriverResult ResultFromError(string error) { - lock(lockObject) + lock (lockObject) { if (resultMap == null) {