From 5a7272eec98dfc5c4bc542956076804de8690056 Mon Sep 17 00:00:00 2001 From: Nikolay Borisenko <22616990+nvborisenko@users.noreply.github.com> Date: Mon, 18 Mar 2024 02:48:10 +0300 Subject: [PATCH] [dotnet] Formatted source style globally Sorry guys if you see my face here --- .../support/Extensions/WebDriverExtensions.cs | 1 - dotnet/src/support/UI/SelectElement.cs | 1 - dotnet/src/webdriver/By.cs | 2 +- dotnet/src/webdriver/Chrome/ChromeDriver.cs | 5 ++--- .../webdriver/Chrome/ChromeDriverService.cs | 3 +-- dotnet/src/webdriver/Chrome/ChromeOptions.cs | 5 +---- .../src/webdriver/Chromium/ChromiumDriver.cs | 4 ++-- .../Chromium/ChromiumNetworkConditions.cs | 2 +- .../src/webdriver/Chromium/ChromiumOptions.cs | 2 -- dotnet/src/webdriver/Command.cs | 3 +-- dotnet/src/webdriver/CommandInfo.cs | 4 ---- dotnet/src/webdriver/Cookie.cs | 6 +++--- .../DevTools/AuthRequiredEventArgs.cs | 2 -- .../DevTools/BindingCalledEventArgs.cs | 2 -- .../DevTools/ConsoleApiCalledEventArgs.cs | 2 -- .../webdriver/DevTools/DevToolsCommandData.cs | 2 +- .../src/webdriver/DevTools/DevToolsDomains.cs | 2 -- .../DevTools/DevToolsExtensionMethods.cs | 8 -------- .../src/webdriver/DevTools/DevToolsSession.cs | 4 ++-- .../DevTools/DevToolsSessionDomains.cs | 4 ---- .../DevToolsSessionEventReceivedEventArgs.cs | 2 +- .../webdriver/DevTools/DevToolsVersionInfo.cs | 4 +--- .../webdriver/DevTools/EntryAddedEventArgs.cs | 2 -- .../DevTools/ExceptionThrownEventArgs.cs | 2 -- .../webdriver/DevTools/IDevToolsSession.cs | 4 +--- dotnet/src/webdriver/DevTools/LogEntry.cs | 4 ---- .../DevTools/RequestPausedEventArgs.cs | 2 -- dotnet/src/webdriver/DevTools/TargetInfo.cs | 4 ---- .../webdriver/DevTools/v120/V120Domains.cs | 4 ---- .../webdriver/DevTools/v120/V120JavaScript.cs | 4 ++-- dotnet/src/webdriver/DevTools/v120/V120Log.cs | 6 +----- .../webdriver/DevTools/v120/V120Network.cs | 4 ++-- .../src/webdriver/DevTools/v120/V120Target.cs | 3 +-- .../webdriver/DevTools/v121/V121Domains.cs | 4 ---- .../webdriver/DevTools/v121/V121JavaScript.cs | 4 ++-- dotnet/src/webdriver/DevTools/v121/V121Log.cs | 6 +----- .../webdriver/DevTools/v121/V121Network.cs | 4 ++-- .../src/webdriver/DevTools/v121/V121Target.cs | 3 +-- .../webdriver/DevTools/v122/V122Domains.cs | 4 ---- .../webdriver/DevTools/v122/V122JavaScript.cs | 4 ++-- dotnet/src/webdriver/DevTools/v122/V122Log.cs | 6 +----- .../webdriver/DevTools/v122/V122Network.cs | 4 ++-- .../src/webdriver/DevTools/v122/V122Target.cs | 3 +-- .../src/webdriver/DevTools/v85/V85Domains.cs | 4 ---- .../webdriver/DevTools/v85/V85JavaScript.cs | 4 ++-- dotnet/src/webdriver/DevTools/v85/V85Log.cs | 6 +----- .../src/webdriver/DevTools/v85/V85Network.cs | 4 ++-- .../src/webdriver/DevTools/v85/V85Target.cs | 3 +-- dotnet/src/webdriver/DriverCommand.cs | 1 - .../src/webdriver/DriverOptionsMergeResult.cs | 5 ----- dotnet/src/webdriver/DriverService.cs | 4 ++-- dotnet/src/webdriver/Edge/EdgeDriver.cs | 4 ++-- .../src/webdriver/Edge/EdgeDriverService.cs | 4 ++-- dotnet/src/webdriver/Edge/EdgeOptions.cs | 3 +-- dotnet/src/webdriver/ElementCoordinates.cs | 3 +-- .../Firefox/FirefoxAndroidOptions.cs | 2 +- .../Firefox/FirefoxCommandContext.cs | 2 -- dotnet/src/webdriver/Firefox/FirefoxDriver.cs | 4 ++-- .../webdriver/Firefox/FirefoxDriverService.cs | 2 +- .../src/webdriver/Firefox/FirefoxExtension.cs | 5 ++--- .../src/webdriver/Firefox/FirefoxOptions.cs | 2 -- .../src/webdriver/Firefox/FirefoxProfile.cs | 6 ++---- .../Firefox/FirefoxProfileManager.cs | 2 +- dotnet/src/webdriver/HttpCommandInfo.cs | 1 - dotnet/src/webdriver/HttpRequestData.cs | 2 -- dotnet/src/webdriver/IActionExecutor.cs | 5 +---- dotnet/src/webdriver/ICapabilities.cs | 1 - .../webdriver/IE/InternetExplorerDriver.cs | 2 +- .../IE/InternetExplorerDriverService.cs | 3 +-- .../webdriver/IE/InternetExplorerOptions.cs | 2 -- dotnet/src/webdriver/ILocatable.cs | 2 +- dotnet/src/webdriver/INetwork.cs | 3 --- dotnet/src/webdriver/ISupportsLogs.cs | 6 ------ dotnet/src/webdriver/IWebElement.cs | 1 - dotnet/src/webdriver/IWritableCapabilities.cs | 3 --- .../webdriver/Interactions/ActionBuilder.cs | 1 - .../webdriver/Interactions/ActionSequence.cs | 1 - .../src/webdriver/Interactions/Interaction.cs | 2 -- .../webdriver/Interactions/KeyInputDevice.cs | 2 -- .../Interactions/PauseInteraction.cs | 2 -- .../Interactions/PointerInputDevice.cs | 5 +---- .../Internal/IWebDriverObjectReference.cs | 3 --- .../Internal/Logging/LogHandlerList.cs | 1 - .../webdriver/Internal/ResourceUtilities.cs | 3 --- .../Internal/ResponseValueJsonConverter.cs | 2 +- .../Internal/ReturnedCapabilities.cs | 3 +-- dotnet/src/webdriver/JavaScriptEngine.cs | 6 +++--- dotnet/src/webdriver/NetworkManager.cs | 2 +- dotnet/src/webdriver/PasswordCredentials.cs | 6 ------ dotnet/src/webdriver/Proxy.cs | 2 +- dotnet/src/webdriver/RelativeBy.cs | 2 +- .../webdriver/Remote/DesiredCapabilities.cs | 2 +- .../webdriver/Remote/HttpCommandExecutor.cs | 4 ++-- .../Remote/ReadOnlyDesiredCapabilities.cs | 2 +- .../webdriver/Remote/RemoteSessionSettings.cs | 4 ++-- .../src/webdriver/Remote/RemoteWebDriver.cs | 4 ++-- .../SendingRemoteHttpRequestEventArgs.cs | 1 - dotnet/src/webdriver/Response.cs | 5 ++--- dotnet/src/webdriver/Safari/SafariDriver.cs | 2 +- .../webdriver/Safari/SafariDriverService.cs | 4 ++-- dotnet/src/webdriver/Safari/SafariOptions.cs | 4 ---- dotnet/src/webdriver/ShadowRoot.cs | 2 +- dotnet/src/webdriver/StackTraceElement.cs | 3 +-- dotnet/src/webdriver/TargetLocator.cs | 2 +- dotnet/src/webdriver/WebDriver.cs | 6 +++--- dotnet/src/webdriver/WebElement.cs | 4 ++-- dotnet/src/webdriver/WebElementFactory.cs | 2 -- dotnet/test/chrome/ChromeSpecificTests.cs | 3 +-- dotnet/test/common/AlertsTest.cs | 4 ++-- dotnet/test/common/ChildrenFindingTest.cs | 1 - dotnet/test/common/ClickScrollingTest.cs | 2 +- dotnet/test/common/ClickTest.cs | 2 +- dotnet/test/common/ContentEditableTest.cs | 4 ---- .../test/common/CookieImplementationTest.cs | 8 ++++---- dotnet/test/common/CookieTest.cs | 6 +++--- dotnet/test/common/CorrectEventFiringTest.cs | 8 ++++---- .../IgnoreBrowserAttribute.cs | 6 +++--- .../IgnorePlatformAttribute.cs | 5 ++--- .../IgnoreTargetAttribute.cs | 4 ++-- .../common/DevTools/DevToolsConsoleTest.cs | 4 ++-- .../test/common/DevTools/DevToolsLogTest.cs | 4 ++-- .../common/DevTools/DevToolsNetworkTest.cs | 4 ++-- .../DevTools/DevToolsPerformanceTest.cs | 4 ++-- .../common/DevTools/DevToolsProfilerTest.cs | 2 +- .../common/DevTools/DevToolsSecurityTest.cs | 4 ++-- .../common/DevTools/DevToolsTargetTest.cs | 4 ++-- .../common/DevTools/DevToolsTestFixture.cs | 5 ----- dotnet/test/common/DownloadsTest.cs | 18 ++++++++---------- dotnet/test/common/ElementAttributeTest.cs | 4 ++-- dotnet/test/common/ElementFindingTest.cs | 5 ++--- dotnet/test/common/ElementPropertyTest.cs | 4 ---- dotnet/test/common/ElementSelectingTest.cs | 2 +- .../test/common/Environment/DriverFactory.cs | 9 ++++----- .../common/Environment/EnvironmentManager.cs | 5 ++--- dotnet/test/common/Environment/InlinePage.cs | 3 --- .../common/Environment/TestEnvironment.cs | 2 +- .../test/common/Environment/TestWebServer.cs | 6 +++--- .../common/Environment/TestWebServerConfig.cs | 1 - dotnet/test/common/Environment/UrlBuilder.cs | 8 ++++---- .../test/common/Environment/WebsiteConfig.cs | 7 +------ .../common/ExecutingAsyncJavascriptTest.cs | 4 ++-- dotnet/test/common/ExecutingJavascriptTest.cs | 4 ++-- dotnet/test/common/FormHandlingTests.cs | 2 +- dotnet/test/common/FrameSwitchingTest.cs | 2 +- dotnet/test/common/GetLogsTest.cs | 9 +++------ dotnet/test/common/ImplicitWaitTest.cs | 4 ++-- .../common/Interactions/ActionBuilderTest.cs | 13 +++++++------ .../Interactions/BasicMouseInterfaceTest.cs | 6 ++---- .../Interactions/BasicWheelInterfaceTest.cs | 2 +- .../Interactions/CombinedInputActionsTest.cs | 3 +-- .../common/Interactions/DragAndDropTest.cs | 5 ++--- .../common/JavascriptEnabledBrowserTest.cs | 6 +++--- dotnet/test/common/NavigationTest.cs | 4 ++-- .../test/common/NetworkInterceptionTests.cs | 6 +----- dotnet/test/common/PageLoadingTest.cs | 2 +- .../test/common/PartialLinkTextMatchTest.cs | 2 +- dotnet/test/common/PositionAndSizeTest.cs | 4 ++-- dotnet/test/common/ProxySettingTest.cs | 10 +++++----- dotnet/test/common/ProxyTest.cs | 4 +--- dotnet/test/common/RelativeLocatorTest.cs | 2 +- .../test/common/SelectElementHandlingTest.cs | 2 +- dotnet/test/common/SessionHandlingTest.cs | 2 +- dotnet/test/common/ShadowRootHandlingTest.cs | 2 -- dotnet/test/common/SlowLoadingPageTest.cs | 2 +- dotnet/test/common/SvgElementTest.cs | 2 +- dotnet/test/common/TakesScreenshotTest.cs | 8 ++++---- dotnet/test/common/TargetLocatorTest.cs | 8 ++++---- dotnet/test/common/TextHandlingTest.cs | 6 +++--- dotnet/test/common/TypingTest.cs | 13 ++++++++----- .../common/UnexpectedAlertBehaviorTest.cs | 1 - dotnet/test/common/UploadTest.cs | 7 ++++--- .../VirtualAuthn/VirtualAuthenticatorTest.cs | 7 +++---- dotnet/test/common/VisibilityTest.cs | 4 ++-- dotnet/test/common/WebElementTest.cs | 19 +++++++++---------- dotnet/test/common/WindowSwitchingTest.cs | 9 +++++---- dotnet/test/common/WindowTest.cs | 2 +- dotnet/test/firefox/FirefoxDriverTest.cs | 6 +++--- dotnet/test/firefox/FirefoxProfileTests.cs | 2 +- dotnet/test/ie/IeSpecificTests.cs | 6 +++--- dotnet/test/remote/ChromeRemoteWebDriver.cs | 4 ++-- dotnet/test/remote/EdgeRemoteWebDriver.cs | 4 ++-- dotnet/test/remote/FirefoxRemoteWebDriver.cs | 4 ++-- .../test/remote/RemoteSessionCreationTests.cs | 9 +-------- .../remote/RemoteWebDriverSpecificTests.cs | 4 +--- .../TestInternetExplorerRemoteWebDriver.cs | 2 +- .../Events/EventFiringWebDriverTest.cs | 7 +++---- .../Extensions/ExecuteJavaScriptTest.cs | 4 ++-- dotnet/test/support/UI/DefaultWaitTest.cs | 4 ++-- .../test/support/UI/LoadableComponentTests.cs | 4 ++-- dotnet/test/support/UI/SelectBrowserTests.cs | 4 ++-- dotnet/test/support/UI/SelectTests.cs | 6 +++--- .../support/UI/SlowLoadableComponentTest.cs | 4 ++-- dotnet/test/support/UI/WebDriverWaitTest.cs | 16 ++++++++-------- 193 files changed, 285 insertions(+), 497 deletions(-) diff --git a/dotnet/src/support/Extensions/WebDriverExtensions.cs b/dotnet/src/support/Extensions/WebDriverExtensions.cs index 4c4fbc55dc574..493fe048692f4 100644 --- a/dotnet/src/support/Extensions/WebDriverExtensions.cs +++ b/dotnet/src/support/Extensions/WebDriverExtensions.cs @@ -18,7 +18,6 @@ using System; using System.Reflection; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Support.Extensions { diff --git a/dotnet/src/support/UI/SelectElement.cs b/dotnet/src/support/UI/SelectElement.cs index d57cc36f50190..0881f33bd3efc 100644 --- a/dotnet/src/support/UI/SelectElement.cs +++ b/dotnet/src/support/UI/SelectElement.cs @@ -20,7 +20,6 @@ using System.Collections.Generic; using System.Globalization; using System.Text; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Support.UI { diff --git a/dotnet/src/webdriver/By.cs b/dotnet/src/webdriver/By.cs index 5bdf826fae8da..a98d044649a10 100644 --- a/dotnet/src/webdriver/By.cs +++ b/dotnet/src/webdriver/By.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.Text.RegularExpressions; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/Chrome/ChromeDriver.cs b/dotnet/src/webdriver/Chrome/ChromeDriver.cs index 1fc39a4dce0e9..520bbf8aa80b5 100644 --- a/dotnet/src/webdriver/Chrome/ChromeDriver.cs +++ b/dotnet/src/webdriver/Chrome/ChromeDriver.cs @@ -16,12 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.Chromium; +using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using OpenQA.Selenium.Remote; -using OpenQA.Selenium.Chromium; -using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.Chrome { diff --git a/dotnet/src/webdriver/Chrome/ChromeDriverService.cs b/dotnet/src/webdriver/Chrome/ChromeDriverService.cs index 4c48017f43cad..89dfa1e21e123 100644 --- a/dotnet/src/webdriver/Chrome/ChromeDriverService.cs +++ b/dotnet/src/webdriver/Chrome/ChromeDriverService.cs @@ -16,10 +16,9 @@ // limitations under the License. // -using System; -using System.IO; using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Internal; +using System.IO; namespace OpenQA.Selenium.Chrome { diff --git a/dotnet/src/webdriver/Chrome/ChromeOptions.cs b/dotnet/src/webdriver/Chrome/ChromeOptions.cs index 45c4d0ea28b1a..aeb700c8bfcd8 100644 --- a/dotnet/src/webdriver/Chrome/ChromeOptions.cs +++ b/dotnet/src/webdriver/Chrome/ChromeOptions.cs @@ -16,12 +16,9 @@ // limitations under the License. // +using OpenQA.Selenium.Chromium; using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; using System.Globalization; -using System.IO; -using OpenQA.Selenium.Chromium; namespace OpenQA.Selenium.Chrome { diff --git a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs index fb2660a05c0af..cc592e51e8c54 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs @@ -16,13 +16,13 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools; +using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Chromium { diff --git a/dotnet/src/webdriver/Chromium/ChromiumNetworkConditions.cs b/dotnet/src/webdriver/Chromium/ChromiumNetworkConditions.cs index d28ee94ff8d5c..5d40dae213105 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumNetworkConditions.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumNetworkConditions.cs @@ -16,9 +16,9 @@ // limitations under the License. // +using Newtonsoft.Json; using System; using System.Collections.Generic; -using Newtonsoft.Json; namespace OpenQA.Selenium.Chromium { diff --git a/dotnet/src/webdriver/Chromium/ChromiumOptions.cs b/dotnet/src/webdriver/Chromium/ChromiumOptions.cs index d78ca975a5fec..77fdb9050aca4 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumOptions.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumOptions.cs @@ -19,9 +19,7 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Globalization; using System.IO; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Chromium { diff --git a/dotnet/src/webdriver/Command.cs b/dotnet/src/webdriver/Command.cs index 6edc49aedf6a7..e147b1b1eb509 100644 --- a/dotnet/src/webdriver/Command.cs +++ b/dotnet/src/webdriver/Command.cs @@ -16,10 +16,9 @@ // limitations under the License. // -using System.Collections.Generic; -using System.Collections.ObjectModel; using Newtonsoft.Json; using OpenQA.Selenium.Internal; +using System.Collections.Generic; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/CommandInfo.cs b/dotnet/src/webdriver/CommandInfo.cs index bc58b2b1e830a..864744f7f3ec1 100644 --- a/dotnet/src/webdriver/CommandInfo.cs +++ b/dotnet/src/webdriver/CommandInfo.cs @@ -17,10 +17,6 @@ // using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/Cookie.cs b/dotnet/src/webdriver/Cookie.cs index c0af9239b2f3a..8ce2ff7d56a9a 100644 --- a/dotnet/src/webdriver/Cookie.cs +++ b/dotnet/src/webdriver/Cookie.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using Newtonsoft.Json; +using OpenQA.Selenium.Internal; using System; -using System.Linq; using System.Collections.Generic; using System.Globalization; -using Newtonsoft.Json; -using OpenQA.Selenium.Internal; +using System.Linq; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/DevTools/AuthRequiredEventArgs.cs b/dotnet/src/webdriver/DevTools/AuthRequiredEventArgs.cs index 3fd1407272019..c15a2964e4755 100644 --- a/dotnet/src/webdriver/DevTools/AuthRequiredEventArgs.cs +++ b/dotnet/src/webdriver/DevTools/AuthRequiredEventArgs.cs @@ -17,8 +17,6 @@ // using System; -using System.Collections.Generic; -using System.Text; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/BindingCalledEventArgs.cs b/dotnet/src/webdriver/DevTools/BindingCalledEventArgs.cs index d16bb82159fde..812b01d7ed2a2 100644 --- a/dotnet/src/webdriver/DevTools/BindingCalledEventArgs.cs +++ b/dotnet/src/webdriver/DevTools/BindingCalledEventArgs.cs @@ -17,8 +17,6 @@ // using System; -using System.Collections.Generic; -using System.Text; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/ConsoleApiCalledEventArgs.cs b/dotnet/src/webdriver/DevTools/ConsoleApiCalledEventArgs.cs index 575d93a363baa..93fc970f5201c 100644 --- a/dotnet/src/webdriver/DevTools/ConsoleApiCalledEventArgs.cs +++ b/dotnet/src/webdriver/DevTools/ConsoleApiCalledEventArgs.cs @@ -17,9 +17,7 @@ // using System; -using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/DevToolsCommandData.cs b/dotnet/src/webdriver/DevTools/DevToolsCommandData.cs index 0e5dfd09aea73..875af9fa9fa21 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsCommandData.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsCommandData.cs @@ -16,9 +16,9 @@ // limitations under the License. // -using System.Threading; using Newtonsoft.Json; using Newtonsoft.Json.Linq; +using System.Threading; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/DevToolsDomains.cs b/dotnet/src/webdriver/DevTools/DevToolsDomains.cs index 619f265c74cd4..ae1278572c99a 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsDomains.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsDomains.cs @@ -18,8 +18,6 @@ using System; using System.Collections.Generic; using System.Reflection; -using System.Runtime.CompilerServices; -using System.Text; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/DevToolsExtensionMethods.cs b/dotnet/src/webdriver/DevTools/DevToolsExtensionMethods.cs index ab2f77f4dba10..b4a389c7d4203 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsExtensionMethods.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsExtensionMethods.cs @@ -1,11 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using OpenQA.Selenium.Internal; - namespace OpenQA.Selenium.DevTools { /// diff --git a/dotnet/src/webdriver/DevTools/DevToolsSession.cs b/dotnet/src/webdriver/DevTools/DevToolsSession.cs index 311f4d74dbd4f..45ecd2e6e86e3 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsSession.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsSession.cs @@ -16,14 +16,14 @@ // limitations under the License. // +using Newtonsoft.Json; +using Newtonsoft.Json.Linq; using System; using System.Collections.Concurrent; using System.Globalization; using System.Net.Http; using System.Threading; using System.Threading.Tasks; -using Newtonsoft.Json; -using Newtonsoft.Json.Linq; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/DevToolsSessionDomains.cs b/dotnet/src/webdriver/DevTools/DevToolsSessionDomains.cs index 1abbe54c1c084..deec0d49f3b27 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsSessionDomains.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsSessionDomains.cs @@ -16,10 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenQA.Selenium.DevTools { /// diff --git a/dotnet/src/webdriver/DevTools/DevToolsSessionEventReceivedEventArgs.cs b/dotnet/src/webdriver/DevTools/DevToolsSessionEventReceivedEventArgs.cs index f6e2d421155ed..e4b55f6f80d8c 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsSessionEventReceivedEventArgs.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsSessionEventReceivedEventArgs.cs @@ -16,8 +16,8 @@ // limitations under the License. // -using System; using Newtonsoft.Json.Linq; +using System; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/DevToolsVersionInfo.cs b/dotnet/src/webdriver/DevTools/DevToolsVersionInfo.cs index 21584b17383c0..1cdfb269d792f 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsVersionInfo.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsVersionInfo.cs @@ -16,11 +16,9 @@ // limitations under the License. // +using Newtonsoft.Json; using System; -using System.Collections.Generic; -using System.Text; using System.Text.RegularExpressions; -using Newtonsoft.Json; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/EntryAddedEventArgs.cs b/dotnet/src/webdriver/DevTools/EntryAddedEventArgs.cs index f961138fa96a7..44199aabac383 100644 --- a/dotnet/src/webdriver/DevTools/EntryAddedEventArgs.cs +++ b/dotnet/src/webdriver/DevTools/EntryAddedEventArgs.cs @@ -17,8 +17,6 @@ // using System; -using System.Collections.Generic; -using System.Text; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/ExceptionThrownEventArgs.cs b/dotnet/src/webdriver/DevTools/ExceptionThrownEventArgs.cs index 85d42cb8d852a..536aa20234327 100644 --- a/dotnet/src/webdriver/DevTools/ExceptionThrownEventArgs.cs +++ b/dotnet/src/webdriver/DevTools/ExceptionThrownEventArgs.cs @@ -17,8 +17,6 @@ // using System; -using System.Collections.Generic; -using System.Text; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/IDevToolsSession.cs b/dotnet/src/webdriver/DevTools/IDevToolsSession.cs index b9d1d06191eb4..6c541cc99b4ba 100644 --- a/dotnet/src/webdriver/DevTools/IDevToolsSession.cs +++ b/dotnet/src/webdriver/DevTools/IDevToolsSession.cs @@ -15,12 +15,10 @@ // See the License for the specific language governing permissions and // limitations under the License. +using Newtonsoft.Json.Linq; using System; -using System.Collections.Generic; -using System.Text; using System.Threading; using System.Threading.Tasks; -using Newtonsoft.Json.Linq; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/LogEntry.cs b/dotnet/src/webdriver/DevTools/LogEntry.cs index ffa13fb3409c9..22b1f813128c9 100644 --- a/dotnet/src/webdriver/DevTools/LogEntry.cs +++ b/dotnet/src/webdriver/DevTools/LogEntry.cs @@ -16,10 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenQA.Selenium.DevTools { /// diff --git a/dotnet/src/webdriver/DevTools/RequestPausedEventArgs.cs b/dotnet/src/webdriver/DevTools/RequestPausedEventArgs.cs index d28a62c4659b1..de43f998275de 100644 --- a/dotnet/src/webdriver/DevTools/RequestPausedEventArgs.cs +++ b/dotnet/src/webdriver/DevTools/RequestPausedEventArgs.cs @@ -17,8 +17,6 @@ // using System; -using System.Collections.Generic; -using System.Text; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/src/webdriver/DevTools/TargetInfo.cs b/dotnet/src/webdriver/DevTools/TargetInfo.cs index 170c4292c1664..8ae083ae3f82d 100644 --- a/dotnet/src/webdriver/DevTools/TargetInfo.cs +++ b/dotnet/src/webdriver/DevTools/TargetInfo.cs @@ -16,10 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenQA.Selenium.DevTools { /// diff --git a/dotnet/src/webdriver/DevTools/v120/V120Domains.cs b/dotnet/src/webdriver/DevTools/v120/V120Domains.cs index 781d15025ff8b..6fcfa469ef410 100644 --- a/dotnet/src/webdriver/DevTools/v120/V120Domains.cs +++ b/dotnet/src/webdriver/DevTools/v120/V120Domains.cs @@ -15,10 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenQA.Selenium.DevTools.V120 { /// diff --git a/dotnet/src/webdriver/DevTools/v120/V120JavaScript.cs b/dotnet/src/webdriver/DevTools/v120/V120JavaScript.cs index ed70f1034ff57..4fe0a7c3074f6 100644 --- a/dotnet/src/webdriver/DevTools/v120/V120JavaScript.cs +++ b/dotnet/src/webdriver/DevTools/v120/V120JavaScript.cs @@ -15,11 +15,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +using OpenQA.Selenium.DevTools.V120.Page; +using OpenQA.Selenium.DevTools.V120.Runtime; using System; using System.Collections.Generic; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V120.Page; -using OpenQA.Selenium.DevTools.V120.Runtime; namespace OpenQA.Selenium.DevTools.V120 { diff --git a/dotnet/src/webdriver/DevTools/v120/V120Log.cs b/dotnet/src/webdriver/DevTools/v120/V120Log.cs index d87e91e08bc34..89684bba95593 100644 --- a/dotnet/src/webdriver/DevTools/v120/V120Log.cs +++ b/dotnet/src/webdriver/DevTools/v120/V120Log.cs @@ -15,12 +15,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using OpenQA.Selenium.DevTools.V120.Log; +using System.Threading.Tasks; namespace OpenQA.Selenium.DevTools.V120 { diff --git a/dotnet/src/webdriver/DevTools/v120/V120Network.cs b/dotnet/src/webdriver/DevTools/v120/V120Network.cs index 22002f94fdfbb..5e310954cd925 100644 --- a/dotnet/src/webdriver/DevTools/v120/V120Network.cs +++ b/dotnet/src/webdriver/DevTools/v120/V120Network.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V120.Fetch; +using OpenQA.Selenium.DevTools.V120.Network; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V120.Fetch; -using OpenQA.Selenium.DevTools.V120.Network; namespace OpenQA.Selenium.DevTools.V120 { diff --git a/dotnet/src/webdriver/DevTools/v120/V120Target.cs b/dotnet/src/webdriver/DevTools/v120/V120Target.cs index b31bb2ccb4ca1..60588f8dec2ab 100644 --- a/dotnet/src/webdriver/DevTools/v120/V120Target.cs +++ b/dotnet/src/webdriver/DevTools/v120/V120Target.cs @@ -16,12 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V120.Target; using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V120.Target; namespace OpenQA.Selenium.DevTools.V120 { diff --git a/dotnet/src/webdriver/DevTools/v121/V121Domains.cs b/dotnet/src/webdriver/DevTools/v121/V121Domains.cs index a9d974c3f2896..ca5711bf84671 100644 --- a/dotnet/src/webdriver/DevTools/v121/V121Domains.cs +++ b/dotnet/src/webdriver/DevTools/v121/V121Domains.cs @@ -15,10 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenQA.Selenium.DevTools.V121 { /// diff --git a/dotnet/src/webdriver/DevTools/v121/V121JavaScript.cs b/dotnet/src/webdriver/DevTools/v121/V121JavaScript.cs index 886f10d256bb5..7cd52a929ed99 100644 --- a/dotnet/src/webdriver/DevTools/v121/V121JavaScript.cs +++ b/dotnet/src/webdriver/DevTools/v121/V121JavaScript.cs @@ -15,11 +15,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +using OpenQA.Selenium.DevTools.V121.Page; +using OpenQA.Selenium.DevTools.V121.Runtime; using System; using System.Collections.Generic; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V121.Page; -using OpenQA.Selenium.DevTools.V121.Runtime; namespace OpenQA.Selenium.DevTools.V121 { diff --git a/dotnet/src/webdriver/DevTools/v121/V121Log.cs b/dotnet/src/webdriver/DevTools/v121/V121Log.cs index e3cde87f6cd8f..f1a78670e5786 100644 --- a/dotnet/src/webdriver/DevTools/v121/V121Log.cs +++ b/dotnet/src/webdriver/DevTools/v121/V121Log.cs @@ -15,12 +15,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using OpenQA.Selenium.DevTools.V121.Log; +using System.Threading.Tasks; namespace OpenQA.Selenium.DevTools.V121 { diff --git a/dotnet/src/webdriver/DevTools/v121/V121Network.cs b/dotnet/src/webdriver/DevTools/v121/V121Network.cs index 0ff534b8afd58..5eb5d6ff71f3f 100644 --- a/dotnet/src/webdriver/DevTools/v121/V121Network.cs +++ b/dotnet/src/webdriver/DevTools/v121/V121Network.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V121.Fetch; +using OpenQA.Selenium.DevTools.V121.Network; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V121.Fetch; -using OpenQA.Selenium.DevTools.V121.Network; namespace OpenQA.Selenium.DevTools.V121 { diff --git a/dotnet/src/webdriver/DevTools/v121/V121Target.cs b/dotnet/src/webdriver/DevTools/v121/V121Target.cs index 4afeb6abbe357..2eb7d403e6f9a 100644 --- a/dotnet/src/webdriver/DevTools/v121/V121Target.cs +++ b/dotnet/src/webdriver/DevTools/v121/V121Target.cs @@ -16,12 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V121.Target; using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V121.Target; namespace OpenQA.Selenium.DevTools.V121 { diff --git a/dotnet/src/webdriver/DevTools/v122/V122Domains.cs b/dotnet/src/webdriver/DevTools/v122/V122Domains.cs index 04cbfeab52d67..fe3b1909902fc 100644 --- a/dotnet/src/webdriver/DevTools/v122/V122Domains.cs +++ b/dotnet/src/webdriver/DevTools/v122/V122Domains.cs @@ -15,10 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenQA.Selenium.DevTools.V122 { /// diff --git a/dotnet/src/webdriver/DevTools/v122/V122JavaScript.cs b/dotnet/src/webdriver/DevTools/v122/V122JavaScript.cs index 20ba05021ed2d..26e0baaa55842 100644 --- a/dotnet/src/webdriver/DevTools/v122/V122JavaScript.cs +++ b/dotnet/src/webdriver/DevTools/v122/V122JavaScript.cs @@ -15,11 +15,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +using OpenQA.Selenium.DevTools.V122.Page; +using OpenQA.Selenium.DevTools.V122.Runtime; using System; using System.Collections.Generic; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V122.Page; -using OpenQA.Selenium.DevTools.V122.Runtime; namespace OpenQA.Selenium.DevTools.V122 { diff --git a/dotnet/src/webdriver/DevTools/v122/V122Log.cs b/dotnet/src/webdriver/DevTools/v122/V122Log.cs index 47a5fec58008a..fa17dbe1e2b80 100644 --- a/dotnet/src/webdriver/DevTools/v122/V122Log.cs +++ b/dotnet/src/webdriver/DevTools/v122/V122Log.cs @@ -15,12 +15,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using OpenQA.Selenium.DevTools.V122.Log; +using System.Threading.Tasks; namespace OpenQA.Selenium.DevTools.V122 { diff --git a/dotnet/src/webdriver/DevTools/v122/V122Network.cs b/dotnet/src/webdriver/DevTools/v122/V122Network.cs index 3cb59a03bb72b..83c40c7883df7 100644 --- a/dotnet/src/webdriver/DevTools/v122/V122Network.cs +++ b/dotnet/src/webdriver/DevTools/v122/V122Network.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V122.Fetch; +using OpenQA.Selenium.DevTools.V122.Network; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V122.Fetch; -using OpenQA.Selenium.DevTools.V122.Network; namespace OpenQA.Selenium.DevTools.V122 { diff --git a/dotnet/src/webdriver/DevTools/v122/V122Target.cs b/dotnet/src/webdriver/DevTools/v122/V122Target.cs index 0f2e42c4ceaf3..a2f9416eb8564 100644 --- a/dotnet/src/webdriver/DevTools/v122/V122Target.cs +++ b/dotnet/src/webdriver/DevTools/v122/V122Target.cs @@ -16,12 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V122.Target; using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V122.Target; namespace OpenQA.Selenium.DevTools.V122 { diff --git a/dotnet/src/webdriver/DevTools/v85/V85Domains.cs b/dotnet/src/webdriver/DevTools/v85/V85Domains.cs index 11fbdb3f99c53..daca74d68fa7e 100644 --- a/dotnet/src/webdriver/DevTools/v85/V85Domains.cs +++ b/dotnet/src/webdriver/DevTools/v85/V85Domains.cs @@ -15,10 +15,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; - namespace OpenQA.Selenium.DevTools.V85 { /// diff --git a/dotnet/src/webdriver/DevTools/v85/V85JavaScript.cs b/dotnet/src/webdriver/DevTools/v85/V85JavaScript.cs index e43a12d3e683d..c564a9a36e6bc 100644 --- a/dotnet/src/webdriver/DevTools/v85/V85JavaScript.cs +++ b/dotnet/src/webdriver/DevTools/v85/V85JavaScript.cs @@ -15,11 +15,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +using OpenQA.Selenium.DevTools.V85.Page; +using OpenQA.Selenium.DevTools.V85.Runtime; using System; using System.Collections.Generic; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V85.Page; -using OpenQA.Selenium.DevTools.V85.Runtime; namespace OpenQA.Selenium.DevTools.V85 { diff --git a/dotnet/src/webdriver/DevTools/v85/V85Log.cs b/dotnet/src/webdriver/DevTools/v85/V85Log.cs index 483ca127fba76..98919306771e8 100644 --- a/dotnet/src/webdriver/DevTools/v85/V85Log.cs +++ b/dotnet/src/webdriver/DevTools/v85/V85Log.cs @@ -15,12 +15,8 @@ // See the License for the specific language governing permissions and // limitations under the License. -using System; -using System.Collections.Generic; -using System.Text; -using System.Threading; -using System.Threading.Tasks; using OpenQA.Selenium.DevTools.V85.Log; +using System.Threading.Tasks; namespace OpenQA.Selenium.DevTools.V85 { diff --git a/dotnet/src/webdriver/DevTools/v85/V85Network.cs b/dotnet/src/webdriver/DevTools/v85/V85Network.cs index 3f6d504522f03..15f61b4871367 100644 --- a/dotnet/src/webdriver/DevTools/v85/V85Network.cs +++ b/dotnet/src/webdriver/DevTools/v85/V85Network.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V85.Fetch; +using OpenQA.Selenium.DevTools.V85.Network; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V85.Fetch; -using OpenQA.Selenium.DevTools.V85.Network; namespace OpenQA.Selenium.DevTools.V85 { diff --git a/dotnet/src/webdriver/DevTools/v85/V85Target.cs b/dotnet/src/webdriver/DevTools/v85/V85Target.cs index 03bcc7ff3d667..639af04244239 100644 --- a/dotnet/src/webdriver/DevTools/v85/V85Target.cs +++ b/dotnet/src/webdriver/DevTools/v85/V85Target.cs @@ -16,12 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools.V85.Target; using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools.V85.Target; namespace OpenQA.Selenium.DevTools.V85 { diff --git a/dotnet/src/webdriver/DriverCommand.cs b/dotnet/src/webdriver/DriverCommand.cs index e5316d0afef7d..e8b21ac3d687f 100644 --- a/dotnet/src/webdriver/DriverCommand.cs +++ b/dotnet/src/webdriver/DriverCommand.cs @@ -16,7 +16,6 @@ // limitations under the License. // -using System; using System.Collections.Generic; namespace OpenQA.Selenium diff --git a/dotnet/src/webdriver/DriverOptionsMergeResult.cs b/dotnet/src/webdriver/DriverOptionsMergeResult.cs index f7a18b9ffb624..c2c0c7b29a0e5 100644 --- a/dotnet/src/webdriver/DriverOptionsMergeResult.cs +++ b/dotnet/src/webdriver/DriverOptionsMergeResult.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - namespace OpenQA.Selenium.Remote { /// diff --git a/dotnet/src/webdriver/DriverService.cs b/dotnet/src/webdriver/DriverService.cs index 691fc18f21a0f..ad1f519275769 100644 --- a/dotnet/src/webdriver/DriverService.cs +++ b/dotnet/src/webdriver/DriverService.cs @@ -16,6 +16,8 @@ // limitations under the License. // +using OpenQA.Selenium.Internal.Logging; +using OpenQA.Selenium.Remote; using System; using System.Diagnostics; using System.Globalization; @@ -23,8 +25,6 @@ using System.Net; using System.Net.Http; using System.Threading.Tasks; -using OpenQA.Selenium.Internal.Logging; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/Edge/EdgeDriver.cs b/dotnet/src/webdriver/Edge/EdgeDriver.cs index f3e6f5f515bfc..3a55752489455 100644 --- a/dotnet/src/webdriver/Edge/EdgeDriver.cs +++ b/dotnet/src/webdriver/Edge/EdgeDriver.cs @@ -16,11 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.Chromium; +using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using OpenQA.Selenium.Chromium; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Edge { diff --git a/dotnet/src/webdriver/Edge/EdgeDriverService.cs b/dotnet/src/webdriver/Edge/EdgeDriverService.cs index 3e150e8400fcd..7c075ba905fe9 100644 --- a/dotnet/src/webdriver/Edge/EdgeDriverService.cs +++ b/dotnet/src/webdriver/Edge/EdgeDriverService.cs @@ -16,10 +16,10 @@ // limitations under the License. // -using System; -using System.IO; using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Internal; +using System; +using System.IO; namespace OpenQA.Selenium.Edge { diff --git a/dotnet/src/webdriver/Edge/EdgeOptions.cs b/dotnet/src/webdriver/Edge/EdgeOptions.cs index 1da8e466abdb7..0273ceef35f06 100644 --- a/dotnet/src/webdriver/Edge/EdgeOptions.cs +++ b/dotnet/src/webdriver/Edge/EdgeOptions.cs @@ -16,10 +16,9 @@ // limitations under the License. // +using OpenQA.Selenium.Chromium; using System; -using System.Collections.Generic; using System.Globalization; -using OpenQA.Selenium.Chromium; namespace OpenQA.Selenium.Edge { diff --git a/dotnet/src/webdriver/ElementCoordinates.cs b/dotnet/src/webdriver/ElementCoordinates.cs index 872d9da725331..391182f5bcc53 100644 --- a/dotnet/src/webdriver/ElementCoordinates.cs +++ b/dotnet/src/webdriver/ElementCoordinates.cs @@ -16,10 +16,9 @@ // limitations under the License. // -using System; -using System.Collections.Generic; using OpenQA.Selenium.Interactions.Internal; using OpenQA.Selenium.Internal; +using System; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/Firefox/FirefoxAndroidOptions.cs b/dotnet/src/webdriver/Firefox/FirefoxAndroidOptions.cs index 63532baf55af9..f4f00f958a4b9 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxAndroidOptions.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxAndroidOptions.cs @@ -16,9 +16,9 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System.Collections.Generic; using System.Collections.ObjectModel; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/src/webdriver/Firefox/FirefoxCommandContext.cs b/dotnet/src/webdriver/Firefox/FirefoxCommandContext.cs index 248f0c90c38f8..79ff69fc97db6 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxCommandContext.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxCommandContext.cs @@ -16,8 +16,6 @@ // limitations under the License. // -using System; - namespace OpenQA.Selenium.Firefox { /// diff --git a/dotnet/src/webdriver/Firefox/FirefoxDriver.cs b/dotnet/src/webdriver/Firefox/FirefoxDriver.cs index a28cc9f931c68..572d5567fad39 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxDriver.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxDriver.cs @@ -16,6 +16,8 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools; +using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -23,8 +25,6 @@ using System.IO; using System.IO.Compression; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/src/webdriver/Firefox/FirefoxDriverService.cs b/dotnet/src/webdriver/Firefox/FirefoxDriverService.cs index ce039813f4d6a..2af483a390a05 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxDriverService.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxDriverService.cs @@ -16,11 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Globalization; using System.IO; using System.Text; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/src/webdriver/Firefox/FirefoxExtension.cs b/dotnet/src/webdriver/Firefox/FirefoxExtension.cs index a9d297751ac7a..89673f0e1e0ef 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxExtension.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxExtension.cs @@ -16,14 +16,13 @@ // limitations under the License. // +using Newtonsoft.Json.Linq; +using OpenQA.Selenium.Internal; using System; -using System.Collections.Generic; using System.Globalization; using System.IO; using System.IO.Compression; using System.Xml; -using Newtonsoft.Json.Linq; -using OpenQA.Selenium.Internal; diff --git a/dotnet/src/webdriver/Firefox/FirefoxOptions.cs b/dotnet/src/webdriver/Firefox/FirefoxOptions.cs index c6ed5894971e7..bbdc5a01bd20d 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxOptions.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxOptions.cs @@ -18,8 +18,6 @@ using System; using System.Collections.Generic; -using System.Globalization; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/src/webdriver/Firefox/FirefoxProfile.cs b/dotnet/src/webdriver/Firefox/FirefoxProfile.cs index 8beaf9e205b54..8d563f93c2969 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxProfile.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxProfile.cs @@ -16,14 +16,12 @@ // limitations under the License. // +using Newtonsoft.Json; +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; -using System.Globalization; using System.IO; using System.IO.Compression; -using Newtonsoft.Json; -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs b/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs index f618a285b3ebe..21d6695fe48de 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs @@ -16,11 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.Firefox.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.IO; -using OpenQA.Selenium.Firefox.Internal; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/src/webdriver/HttpCommandInfo.cs b/dotnet/src/webdriver/HttpCommandInfo.cs index ed6cbb3afa3dc..edcb69cfd2d5f 100644 --- a/dotnet/src/webdriver/HttpCommandInfo.cs +++ b/dotnet/src/webdriver/HttpCommandInfo.cs @@ -18,7 +18,6 @@ using System; using System.Globalization; -using System.Net; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/HttpRequestData.cs b/dotnet/src/webdriver/HttpRequestData.cs index f03ee6d9c1c06..1d08abd415cd3 100644 --- a/dotnet/src/webdriver/HttpRequestData.cs +++ b/dotnet/src/webdriver/HttpRequestData.cs @@ -16,9 +16,7 @@ // limitations under the License. // -using System; using System.Collections.Generic; -using System.Text; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/IActionExecutor.cs b/dotnet/src/webdriver/IActionExecutor.cs index 5848c10efffa4..92be69f9ce1a1 100644 --- a/dotnet/src/webdriver/IActionExecutor.cs +++ b/dotnet/src/webdriver/IActionExecutor.cs @@ -16,11 +16,8 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using OpenQA.Selenium.Interactions; +using System.Collections.Generic; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/ICapabilities.cs b/dotnet/src/webdriver/ICapabilities.cs index cff60b7e37950..cd2d62436cba3 100644 --- a/dotnet/src/webdriver/ICapabilities.cs +++ b/dotnet/src/webdriver/ICapabilities.cs @@ -17,7 +17,6 @@ // using System; -using System.Collections.Generic; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/IE/InternetExplorerDriver.cs b/dotnet/src/webdriver/IE/InternetExplorerDriver.cs index 56ca024befeb4..0a01c72446914 100644 --- a/dotnet/src/webdriver/IE/InternetExplorerDriver.cs +++ b/dotnet/src/webdriver/IE/InternetExplorerDriver.cs @@ -16,9 +16,9 @@ // limitations under the License. // +using OpenQA.Selenium.Remote; using System; using System.IO; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.IE { diff --git a/dotnet/src/webdriver/IE/InternetExplorerDriverService.cs b/dotnet/src/webdriver/IE/InternetExplorerDriverService.cs index 3a02b9c74d846..0f25921626567 100644 --- a/dotnet/src/webdriver/IE/InternetExplorerDriverService.cs +++ b/dotnet/src/webdriver/IE/InternetExplorerDriverService.cs @@ -16,11 +16,10 @@ // limitations under the License. // -using System; +using OpenQA.Selenium.Internal; using System.Globalization; using System.IO; using System.Text; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.IE { diff --git a/dotnet/src/webdriver/IE/InternetExplorerOptions.cs b/dotnet/src/webdriver/IE/InternetExplorerOptions.cs index 7ee4e9edf53d4..c22069d686ee2 100644 --- a/dotnet/src/webdriver/IE/InternetExplorerOptions.cs +++ b/dotnet/src/webdriver/IE/InternetExplorerOptions.cs @@ -18,8 +18,6 @@ using System; using System.Collections.Generic; -using System.Globalization; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.IE { diff --git a/dotnet/src/webdriver/ILocatable.cs b/dotnet/src/webdriver/ILocatable.cs index 7dcb4f7215676..d701344fd1e42 100644 --- a/dotnet/src/webdriver/ILocatable.cs +++ b/dotnet/src/webdriver/ILocatable.cs @@ -16,8 +16,8 @@ // limitations under the License. // -using System.Drawing; using OpenQA.Selenium.Interactions.Internal; +using System.Drawing; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/INetwork.cs b/dotnet/src/webdriver/INetwork.cs index d0bf5aa292add..a9a4eb2f0b2b4 100644 --- a/dotnet/src/webdriver/INetwork.cs +++ b/dotnet/src/webdriver/INetwork.cs @@ -17,9 +17,6 @@ // using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; namespace OpenQA.Selenium diff --git a/dotnet/src/webdriver/ISupportsLogs.cs b/dotnet/src/webdriver/ISupportsLogs.cs index c3bdd023a4d74..75725c6a7e123 100644 --- a/dotnet/src/webdriver/ISupportsLogs.cs +++ b/dotnet/src/webdriver/ISupportsLogs.cs @@ -16,12 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace OpenQA.Selenium { /// diff --git a/dotnet/src/webdriver/IWebElement.cs b/dotnet/src/webdriver/IWebElement.cs index da7e1b28f87be..89261bdd88435 100644 --- a/dotnet/src/webdriver/IWebElement.cs +++ b/dotnet/src/webdriver/IWebElement.cs @@ -16,7 +16,6 @@ // limitations under the License. // -using System; using System.Drawing; namespace OpenQA.Selenium diff --git a/dotnet/src/webdriver/IWritableCapabilities.cs b/dotnet/src/webdriver/IWritableCapabilities.cs index 792c3acd599a2..92cc232e38340 100644 --- a/dotnet/src/webdriver/IWritableCapabilities.cs +++ b/dotnet/src/webdriver/IWritableCapabilities.cs @@ -16,9 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; - namespace OpenQA.Selenium { /// diff --git a/dotnet/src/webdriver/Interactions/ActionBuilder.cs b/dotnet/src/webdriver/Interactions/ActionBuilder.cs index 21c8919287b68..7dd73f5156c60 100644 --- a/dotnet/src/webdriver/Interactions/ActionBuilder.cs +++ b/dotnet/src/webdriver/Interactions/ActionBuilder.cs @@ -18,7 +18,6 @@ using System; using System.Collections.Generic; -using System.Linq; using System.Text; namespace OpenQA.Selenium.Interactions diff --git a/dotnet/src/webdriver/Interactions/ActionSequence.cs b/dotnet/src/webdriver/Interactions/ActionSequence.cs index 75c21e0422b13..68eabbea00f2b 100644 --- a/dotnet/src/webdriver/Interactions/ActionSequence.cs +++ b/dotnet/src/webdriver/Interactions/ActionSequence.cs @@ -19,7 +19,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; using System.Text; namespace OpenQA.Selenium.Interactions diff --git a/dotnet/src/webdriver/Interactions/Interaction.cs b/dotnet/src/webdriver/Interactions/Interaction.cs index 479fbe2cb3b8a..c3c5831f96259 100644 --- a/dotnet/src/webdriver/Interactions/Interaction.cs +++ b/dotnet/src/webdriver/Interactions/Interaction.cs @@ -18,8 +18,6 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; namespace OpenQA.Selenium.Interactions { diff --git a/dotnet/src/webdriver/Interactions/KeyInputDevice.cs b/dotnet/src/webdriver/Interactions/KeyInputDevice.cs index 7c8af995e7f6b..b228b6810431e 100644 --- a/dotnet/src/webdriver/Interactions/KeyInputDevice.cs +++ b/dotnet/src/webdriver/Interactions/KeyInputDevice.cs @@ -19,8 +19,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; namespace OpenQA.Selenium.Interactions { diff --git a/dotnet/src/webdriver/Interactions/PauseInteraction.cs b/dotnet/src/webdriver/Interactions/PauseInteraction.cs index 32d3afa51ef94..e2aaf0b95e775 100644 --- a/dotnet/src/webdriver/Interactions/PauseInteraction.cs +++ b/dotnet/src/webdriver/Interactions/PauseInteraction.cs @@ -19,8 +19,6 @@ using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; namespace OpenQA.Selenium.Interactions { diff --git a/dotnet/src/webdriver/Interactions/PointerInputDevice.cs b/dotnet/src/webdriver/Interactions/PointerInputDevice.cs index a5a59cc7e5807..a579d362fc711 100644 --- a/dotnet/src/webdriver/Interactions/PointerInputDevice.cs +++ b/dotnet/src/webdriver/Interactions/PointerInputDevice.cs @@ -16,13 +16,10 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Globalization; -using System.Linq; -using System.Text; -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Interactions { diff --git a/dotnet/src/webdriver/Internal/IWebDriverObjectReference.cs b/dotnet/src/webdriver/Internal/IWebDriverObjectReference.cs index 9bb2ba68a0f0c..bc79e68f72672 100644 --- a/dotnet/src/webdriver/Internal/IWebDriverObjectReference.cs +++ b/dotnet/src/webdriver/Internal/IWebDriverObjectReference.cs @@ -16,10 +16,7 @@ // limitations under the License. // -using System; using System.Collections.Generic; -using System.Linq; -using System.Text; namespace OpenQA.Selenium.Internal { diff --git a/dotnet/src/webdriver/Internal/Logging/LogHandlerList.cs b/dotnet/src/webdriver/Internal/Logging/LogHandlerList.cs index 80ac512b80118..73ac20c14a5ea 100644 --- a/dotnet/src/webdriver/Internal/Logging/LogHandlerList.cs +++ b/dotnet/src/webdriver/Internal/Logging/LogHandlerList.cs @@ -16,7 +16,6 @@ // limitations under the License. // -using System; using System.Collections.Generic; namespace OpenQA.Selenium.Internal.Logging diff --git a/dotnet/src/webdriver/Internal/ResourceUtilities.cs b/dotnet/src/webdriver/Internal/ResourceUtilities.cs index 47d8994d63ab4..ddb7afcadce88 100644 --- a/dotnet/src/webdriver/Internal/ResourceUtilities.cs +++ b/dotnet/src/webdriver/Internal/ResourceUtilities.cs @@ -16,9 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Diagnostics; using System.Globalization; using System.IO; using System.Reflection; diff --git a/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs b/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs index 6b437426fd8d7..a421ddac802a3 100644 --- a/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs +++ b/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs @@ -16,9 +16,9 @@ // limitations under the License. // +using Newtonsoft.Json; using System; using System.Collections.Generic; -using Newtonsoft.Json; namespace OpenQA.Selenium.Internal { diff --git a/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs b/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs index 3747d83862598..9fb646a40f5de 100644 --- a/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs +++ b/dotnet/src/webdriver/Internal/ReturnedCapabilities.cs @@ -16,12 +16,11 @@ // limitations under the License. // +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using Newtonsoft.Json; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Internal { diff --git a/dotnet/src/webdriver/JavaScriptEngine.cs b/dotnet/src/webdriver/JavaScriptEngine.cs index 15d4a24801785..2a63e12d7c82c 100644 --- a/dotnet/src/webdriver/JavaScriptEngine.cs +++ b/dotnet/src/webdriver/JavaScriptEngine.cs @@ -16,15 +16,15 @@ // limitations under the License. // +using Newtonsoft.Json; +using OpenQA.Selenium.DevTools; +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Globalization; using System.IO; using System.Linq; using System.Threading.Tasks; -using Newtonsoft.Json; -using OpenQA.Selenium.DevTools; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/NetworkManager.cs b/dotnet/src/webdriver/NetworkManager.cs index cb26932cad761..8d91b72bc27b0 100644 --- a/dotnet/src/webdriver/NetworkManager.cs +++ b/dotnet/src/webdriver/NetworkManager.cs @@ -16,10 +16,10 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools; using System; using System.Collections.Generic; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/PasswordCredentials.cs b/dotnet/src/webdriver/PasswordCredentials.cs index 86dd1416f304e..408ebfd2906ec 100644 --- a/dotnet/src/webdriver/PasswordCredentials.cs +++ b/dotnet/src/webdriver/PasswordCredentials.cs @@ -16,12 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - namespace OpenQA.Selenium { /// diff --git a/dotnet/src/webdriver/Proxy.cs b/dotnet/src/webdriver/Proxy.cs index 733a86f4553e4..c94f28755286e 100644 --- a/dotnet/src/webdriver/Proxy.cs +++ b/dotnet/src/webdriver/Proxy.cs @@ -16,11 +16,11 @@ // limitations under the License. // +using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using Newtonsoft.Json; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/RelativeBy.cs b/dotnet/src/webdriver/RelativeBy.cs index 518ecd5b14482..087a8c5dc76a2 100644 --- a/dotnet/src/webdriver/RelativeBy.cs +++ b/dotnet/src/webdriver/RelativeBy.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.IO; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/Remote/DesiredCapabilities.cs b/dotnet/src/webdriver/Remote/DesiredCapabilities.cs index f5922fbbd979e..2c09fcdd0b7cd 100644 --- a/dotnet/src/webdriver/Remote/DesiredCapabilities.cs +++ b/dotnet/src/webdriver/Remote/DesiredCapabilities.cs @@ -16,11 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/src/webdriver/Remote/HttpCommandExecutor.cs b/dotnet/src/webdriver/Remote/HttpCommandExecutor.cs index 292f495039a55..14beaae4aeb70 100644 --- a/dotnet/src/webdriver/Remote/HttpCommandExecutor.cs +++ b/dotnet/src/webdriver/Remote/HttpCommandExecutor.cs @@ -16,6 +16,8 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; +using OpenQA.Selenium.Internal.Logging; using System; using System.Collections.Generic; using System.Globalization; @@ -25,8 +27,6 @@ using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs b/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs index 415ad643bca40..50584b7475d59 100644 --- a/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs +++ b/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs @@ -16,11 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs b/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs index af455eccbfbe2..b98777c401bc8 100644 --- a/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs +++ b/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs @@ -16,12 +16,12 @@ // limitations under the License. // +using Newtonsoft.Json; +using OpenQA.Selenium.Remote; using System; using System.Collections; using System.Collections.Generic; using System.Globalization; -using Newtonsoft.Json; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/Remote/RemoteWebDriver.cs b/dotnet/src/webdriver/Remote/RemoteWebDriver.cs index 74d83aec384d9..2a75c861d0425 100644 --- a/dotnet/src/webdriver/Remote/RemoteWebDriver.cs +++ b/dotnet/src/webdriver/Remote/RemoteWebDriver.cs @@ -16,6 +16,7 @@ // limitations under the License. // +using OpenQA.Selenium.DevTools; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -23,7 +24,6 @@ using System.IO.Compression; using System.Linq; using System.Threading.Tasks; -using OpenQA.Selenium.DevTools; namespace OpenQA.Selenium.Remote { @@ -453,7 +453,7 @@ public DevToolsSession GetDevToolsSession(DevToolsOptions options) { throw new WebDriverException("Cannot find " + RemoteDevToolsVersionCapabilityName + " capability for driver"); } - + string version = this.Capabilities.GetCapability(RemoteDevToolsVersionCapabilityName).ToString(); bool versionParsed = int.TryParse(version.Substring(0, version.IndexOf(".")), out int devToolsProtocolVersion); diff --git a/dotnet/src/webdriver/Remote/SendingRemoteHttpRequestEventArgs.cs b/dotnet/src/webdriver/Remote/SendingRemoteHttpRequestEventArgs.cs index f9fbe71e1d0d0..c16fd7641135f 100644 --- a/dotnet/src/webdriver/Remote/SendingRemoteHttpRequestEventArgs.cs +++ b/dotnet/src/webdriver/Remote/SendingRemoteHttpRequestEventArgs.cs @@ -18,7 +18,6 @@ using System; using System.Collections.Generic; -using System.Net; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/src/webdriver/Response.cs b/dotnet/src/webdriver/Response.cs index 088deab0b1e1b..b2486f3ebdca2 100644 --- a/dotnet/src/webdriver/Response.cs +++ b/dotnet/src/webdriver/Response.cs @@ -16,11 +16,10 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using System.Globalization; using Newtonsoft.Json; using OpenQA.Selenium.Internal; +using System.Collections.Generic; +using System.Globalization; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/Safari/SafariDriver.cs b/dotnet/src/webdriver/Safari/SafariDriver.cs index 4660441a30060..85669211b341a 100644 --- a/dotnet/src/webdriver/Safari/SafariDriver.cs +++ b/dotnet/src/webdriver/Safari/SafariDriver.cs @@ -16,10 +16,10 @@ // limitations under the License. // +using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.IO; -using OpenQA.Selenium.Remote; namespace OpenQA.Selenium.Safari { diff --git a/dotnet/src/webdriver/Safari/SafariDriverService.cs b/dotnet/src/webdriver/Safari/SafariDriverService.cs index 10a77ddf48cf8..5d850c7ee3bcb 100644 --- a/dotnet/src/webdriver/Safari/SafariDriverService.cs +++ b/dotnet/src/webdriver/Safari/SafariDriverService.cs @@ -16,14 +16,14 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; +using OpenQA.Selenium.Internal.Logging; using System; using System.IO; using System.Net; using System.Net.Http; using System.Text; using System.Threading.Tasks; -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.Safari { diff --git a/dotnet/src/webdriver/Safari/SafariOptions.cs b/dotnet/src/webdriver/Safari/SafariOptions.cs index d3e1b74e662ff..a629e80282a36 100644 --- a/dotnet/src/webdriver/Safari/SafariOptions.cs +++ b/dotnet/src/webdriver/Safari/SafariOptions.cs @@ -16,10 +16,6 @@ // limitations under the License. // -using System; -using System.Collections.Generic; -using OpenQA.Selenium.Remote; - namespace OpenQA.Selenium.Safari { /// diff --git a/dotnet/src/webdriver/ShadowRoot.cs b/dotnet/src/webdriver/ShadowRoot.cs index c0850b1b03307..218207a7bf5ec 100644 --- a/dotnet/src/webdriver/ShadowRoot.cs +++ b/dotnet/src/webdriver/ShadowRoot.cs @@ -16,10 +16,10 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/StackTraceElement.cs b/dotnet/src/webdriver/StackTraceElement.cs index 6f4f1cb3c8502..01ef49ad09186 100644 --- a/dotnet/src/webdriver/StackTraceElement.cs +++ b/dotnet/src/webdriver/StackTraceElement.cs @@ -16,10 +16,9 @@ // limitations under the License. // -using System; +using Newtonsoft.Json; using System.Collections.Generic; using System.Globalization; -using Newtonsoft.Json; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/TargetLocator.cs b/dotnet/src/webdriver/TargetLocator.cs index f8fbc94f0566f..60652a620b232 100644 --- a/dotnet/src/webdriver/TargetLocator.cs +++ b/dotnet/src/webdriver/TargetLocator.cs @@ -16,11 +16,11 @@ // limitations under the License. // +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text.RegularExpressions; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/WebDriver.cs b/dotnet/src/webdriver/WebDriver.cs index 4e9097427f007..8093d0d525a7d 100644 --- a/dotnet/src/webdriver/WebDriver.cs +++ b/dotnet/src/webdriver/WebDriver.cs @@ -16,14 +16,14 @@ // limitations under the License. // +using OpenQA.Selenium.Interactions; +using OpenQA.Selenium.Internal; +using OpenQA.Selenium.VirtualAuth; using System; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; -using OpenQA.Selenium.Interactions; -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.VirtualAuth; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/WebElement.cs b/dotnet/src/webdriver/WebElement.cs index 44a9d884b8df0..c7443a71e0d2a 100644 --- a/dotnet/src/webdriver/WebElement.cs +++ b/dotnet/src/webdriver/WebElement.cs @@ -16,6 +16,8 @@ // limitations under the License. // +using OpenQA.Selenium.Interactions.Internal; +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -24,8 +26,6 @@ using System.IO; using System.IO.Compression; using System.Linq; -using OpenQA.Selenium.Interactions.Internal; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { diff --git a/dotnet/src/webdriver/WebElementFactory.cs b/dotnet/src/webdriver/WebElementFactory.cs index 694c5b3addbc5..117a568cef8c1 100644 --- a/dotnet/src/webdriver/WebElementFactory.cs +++ b/dotnet/src/webdriver/WebElementFactory.cs @@ -18,8 +18,6 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; namespace OpenQA.Selenium { diff --git a/dotnet/test/chrome/ChromeSpecificTests.cs b/dotnet/test/chrome/ChromeSpecificTests.cs index 4957516042eb5..2e7d490d4d282 100644 --- a/dotnet/test/chrome/ChromeSpecificTests.cs +++ b/dotnet/test/chrome/ChromeSpecificTests.cs @@ -1,5 +1,4 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.Chrome diff --git a/dotnet/test/common/AlertsTest.cs b/dotnet/test/common/AlertsTest.cs index 348c5ee3035cf..d9b2a15bff155 100644 --- a/dotnet/test/common/AlertsTest.cs +++ b/dotnet/test/common/AlertsTest.cs @@ -1,7 +1,7 @@ -using System; -using System.Collections.Generic; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; +using System.Collections.Generic; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ChildrenFindingTest.cs b/dotnet/test/common/ChildrenFindingTest.cs index b3c79b50eaf4b..ff1909c72e710 100644 --- a/dotnet/test/common/ChildrenFindingTest.cs +++ b/dotnet/test/common/ChildrenFindingTest.cs @@ -1,6 +1,5 @@ using NUnit.Framework; using System.Collections.ObjectModel; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ClickScrollingTest.cs b/dotnet/test/common/ClickScrollingTest.cs index 73dec27c69d0a..474c204ee876c 100644 --- a/dotnet/test/common/ClickScrollingTest.cs +++ b/dotnet/test/common/ClickScrollingTest.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; using System.Drawing; namespace OpenQA.Selenium diff --git a/dotnet/test/common/ClickTest.cs b/dotnet/test/common/ClickTest.cs index fd8f98aa0b129..5a9dbd97acd10 100644 --- a/dotnet/test/common/ClickTest.cs +++ b/dotnet/test/common/ClickTest.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ContentEditableTest.cs b/dotnet/test/common/ContentEditableTest.cs index 132c3699919cf..99cfc41b909cd 100644 --- a/dotnet/test/common/ContentEditableTest.cs +++ b/dotnet/test/common/ContentEditableTest.cs @@ -1,10 +1,6 @@ using NUnit.Framework; using OpenQA.Selenium.Environment; using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/CookieImplementationTest.cs b/dotnet/test/common/CookieImplementationTest.cs index 5e5279d548c0d..7012d0b71ed5b 100644 --- a/dotnet/test/common/CookieImplementationTest.cs +++ b/dotnet/test/common/CookieImplementationTest.cs @@ -1,10 +1,10 @@ -using System; -using System.Collections.ObjectModel; -using System.Text.RegularExpressions; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Text; using OpenQA.Selenium.Internal; +using System; +using System.Collections.ObjectModel; +using System.Text; +using System.Text.RegularExpressions; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/CookieTest.cs b/dotnet/test/common/CookieTest.cs index 066de751e3d52..091a73bf9bd12 100644 --- a/dotnet/test/common/CookieTest.cs +++ b/dotnet/test/common/CookieTest.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Internal; +using System; namespace OpenQA.Selenium { @@ -34,14 +34,14 @@ public void ShouldThrowAnExceptionWhenTheNameIsNull() [Test] public void ShouldThrowAnExceptionWhenSameSiteIsWrong() { - Assert.That(() => new ReturnedCookie("name", "value", "" , "/", DateTime.Now, true, true, "Wrong"), Throws.InstanceOf()); + Assert.That(() => new ReturnedCookie("name", "value", "", "/", DateTime.Now, true, true, "Wrong"), Throws.InstanceOf()); } [Test] public void CookiesShouldAllowOptionalParametersToBeSet() { DateTime expiry = DateTime.Now; - Cookie cookie = new Cookie ("name", "value", "test.com", "/", expiry, true, true, "None"); + Cookie cookie = new Cookie("name", "value", "test.com", "/", expiry, true, true, "None"); Assert.That(cookie.Domain, Is.EqualTo("test.com")); Assert.That(cookie.Path, Is.EqualTo("/")); Assert.That(cookie.IsHttpOnly, Is.True); diff --git a/dotnet/test/common/CorrectEventFiringTest.cs b/dotnet/test/common/CorrectEventFiringTest.cs index 0eee321e98a4f..e1cbe5ddbf1d2 100644 --- a/dotnet/test/common/CorrectEventFiringTest.cs +++ b/dotnet/test/common/CorrectEventFiringTest.cs @@ -1,10 +1,10 @@ -using System; -using System.Collections.Generic; -using System.Text; using NUnit.Framework; -using System.Collections.ObjectModel; using OpenQA.Selenium.Environment; using OpenQA.Selenium.Interactions; +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Text; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs b/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs index d8bde5d5d1d3c..83859f5c0a3c0 100644 --- a/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs +++ b/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs @@ -1,9 +1,9 @@ using NUnit.Framework; using NUnit.Framework.Interfaces; -using System; using NUnit.Framework.Internal; -using System.Collections.Generic; using OpenQA.Selenium.Environment; +using System; +using System.Collections.Generic; namespace OpenQA.Selenium { @@ -23,7 +23,7 @@ public IgnoreBrowserAttribute(Browser browser, string reason) { this.ignoreReason = reason; } - + public Browser Value { get { return browser; } diff --git a/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs b/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs index f7dd7331ae406..6c9df2bafb888 100644 --- a/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs +++ b/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs @@ -1,11 +1,10 @@ using NUnit.Framework; using NUnit.Framework.Interfaces; -using System; using NUnit.Framework.Internal; +using OpenQA.Selenium.Environment; +using System; using System.Collections.Generic; using System.Runtime.InteropServices; -using OpenQA.Selenium.Environment; - using OSPlatform = System.Runtime.InteropServices.OSPlatform; diff --git a/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs b/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs index 90ae3e3f27967..28b8cc5408383 100644 --- a/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs +++ b/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs @@ -1,9 +1,9 @@ using NUnit.Framework; using NUnit.Framework.Interfaces; -using System; using NUnit.Framework.Internal; -using System.Collections.Generic; using OpenQA.Selenium.Environment; +using System; +using System.Collections.Generic; namespace OpenQA.Selenium diff --git a/dotnet/test/common/DevTools/DevToolsConsoleTest.cs b/dotnet/test/common/DevTools/DevToolsConsoleTest.cs index f353ebf45289e..673927f7ee58b 100644 --- a/dotnet/test/common/DevTools/DevToolsConsoleTest.cs +++ b/dotnet/test/common/DevTools/DevToolsConsoleTest.cs @@ -1,8 +1,8 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Threading; using System.Threading.Tasks; -using NUnit.Framework; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/test/common/DevTools/DevToolsLogTest.cs b/dotnet/test/common/DevTools/DevToolsLogTest.cs index 88337533940d4..f300ccd3f3488 100644 --- a/dotnet/test/common/DevTools/DevToolsLogTest.cs +++ b/dotnet/test/common/DevTools/DevToolsLogTest.cs @@ -1,8 +1,8 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Threading; using System.Threading.Tasks; -using NUnit.Framework; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/test/common/DevTools/DevToolsNetworkTest.cs b/dotnet/test/common/DevTools/DevToolsNetworkTest.cs index 3c21ef767c534..f0fa79034b88d 100644 --- a/dotnet/test/common/DevTools/DevToolsNetworkTest.cs +++ b/dotnet/test/common/DevTools/DevToolsNetworkTest.cs @@ -1,8 +1,8 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Threading; using System.Threading.Tasks; -using NUnit.Framework; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/test/common/DevTools/DevToolsPerformanceTest.cs b/dotnet/test/common/DevTools/DevToolsPerformanceTest.cs index a52a58a053aa0..306c525479d2b 100644 --- a/dotnet/test/common/DevTools/DevToolsPerformanceTest.cs +++ b/dotnet/test/common/DevTools/DevToolsPerformanceTest.cs @@ -1,5 +1,5 @@ -using System.Threading.Tasks; using NUnit.Framework; +using System.Threading.Tasks; namespace OpenQA.Selenium.DevTools { @@ -102,7 +102,7 @@ await domains.Performance.SetTimeDomain(new CurrentCdpVersion.Performance.SetTim await domains.Performance.Enable(new CurrentCdpVersion.Performance.EnableCommandSettings()); driver.Url = simpleTestPage; var response = await domains.Performance.GetMetrics(); - var metrics = response.Metrics; + var metrics = response.Metrics; Assert.That(metrics, Is.Not.Null); Assert.That(metrics.Length, Is.GreaterThan(0)); await domains.Performance.Disable(); diff --git a/dotnet/test/common/DevTools/DevToolsProfilerTest.cs b/dotnet/test/common/DevTools/DevToolsProfilerTest.cs index 5bc144d0ef90d..5d70ea90bea69 100644 --- a/dotnet/test/common/DevTools/DevToolsProfilerTest.cs +++ b/dotnet/test/common/DevTools/DevToolsProfilerTest.cs @@ -1,7 +1,7 @@ +using NUnit.Framework; using System; using System.Threading; using System.Threading.Tasks; -using NUnit.Framework; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/test/common/DevTools/DevToolsSecurityTest.cs b/dotnet/test/common/DevTools/DevToolsSecurityTest.cs index 7830da5b5cfd9..2a11803b5af70 100644 --- a/dotnet/test/common/DevTools/DevToolsSecurityTest.cs +++ b/dotnet/test/common/DevTools/DevToolsSecurityTest.cs @@ -1,8 +1,8 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Threading; using System.Threading.Tasks; -using NUnit.Framework; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/test/common/DevTools/DevToolsTargetTest.cs b/dotnet/test/common/DevTools/DevToolsTargetTest.cs index 3e6a36baec532..25894499d6715 100644 --- a/dotnet/test/common/DevTools/DevToolsTargetTest.cs +++ b/dotnet/test/common/DevTools/DevToolsTargetTest.cs @@ -1,8 +1,8 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Threading; using System.Threading.Tasks; -using NUnit.Framework; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/test/common/DevTools/DevToolsTestFixture.cs b/dotnet/test/common/DevTools/DevToolsTestFixture.cs index fa7e0d1a4355c..3e72712fe7296 100644 --- a/dotnet/test/common/DevTools/DevToolsTestFixture.cs +++ b/dotnet/test/common/DevTools/DevToolsTestFixture.cs @@ -1,10 +1,5 @@ using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace OpenQA.Selenium.DevTools { diff --git a/dotnet/test/common/DownloadsTest.cs b/dotnet/test/common/DownloadsTest.cs index 2597e0a65e3fe..eb21d23123edb 100644 --- a/dotnet/test/common/DownloadsTest.cs +++ b/dotnet/test/common/DownloadsTest.cs @@ -1,13 +1,11 @@ using NUnit.Framework; -using OpenQA.Selenium; using OpenQA.Selenium.Environment; -using System.Collections.Generic; +using OpenQA.Selenium.Remote; +using OpenQA.Selenium.Support.UI; using System; +using System.Collections.Generic; using System.IO; -using System.IO.Compression; using System.Linq; -using OpenQA.Selenium.Remote; -using OpenQA.Selenium.Support.UI; namespace OpenQA.Selenium { @@ -41,7 +39,7 @@ public void CanListDownloadableFiles() { DownloadWithBrowser(); - IReadOnlyList names = ((RemoteWebDriver) driver).GetDownloadableFiles(); + IReadOnlyList names = ((RemoteWebDriver)driver).GetDownloadableFiles(); Assert.That(names, Contains.Item("file_1.txt")); Assert.That(names, Contains.Item("file_2.jpg")); } @@ -52,11 +50,11 @@ public void CanDownloadFile() { DownloadWithBrowser(); - IReadOnlyList names = ((RemoteWebDriver) driver).GetDownloadableFiles(); + IReadOnlyList names = ((RemoteWebDriver)driver).GetDownloadableFiles(); string fileName = names[0]; string targetDirectory = Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()); - ((RemoteWebDriver) driver).DownloadFile(fileName, targetDirectory); + ((RemoteWebDriver)driver).DownloadFile(fileName, targetDirectory); string fileContent = File.ReadAllText(Path.Combine(targetDirectory, fileName)); Assert.AreEqual("Hello, World!", fileContent.Trim()); @@ -72,7 +70,7 @@ public void CanDeleteFiles() ((RemoteWebDriver)driver).DeleteDownloadableFiles(); - IReadOnlyList names = ((RemoteWebDriver) driver).GetDownloadableFiles(); + IReadOnlyList names = ((RemoteWebDriver)driver).GetDownloadableFiles(); Assert.IsEmpty(names, "The names list should be empty."); } @@ -84,7 +82,7 @@ private void DownloadWithBrowser() driver.FindElement(By.Id("file-2")).Click(); WebDriverWait wait = new WebDriverWait(driver, TimeSpan.FromSeconds(3)); - wait.Until(d => ((RemoteWebDriver) d).GetDownloadableFiles().Contains("file_2.jpg")); + wait.Until(d => ((RemoteWebDriver)d).GetDownloadableFiles().Contains("file_2.jpg")); } private void InitLocalDriver() diff --git a/dotnet/test/common/ElementAttributeTest.cs b/dotnet/test/common/ElementAttributeTest.cs index 745609c803e13..af661b21b7a3c 100644 --- a/dotnet/test/common/ElementAttributeTest.cs +++ b/dotnet/test/common/ElementAttributeTest.cs @@ -1,8 +1,8 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; -using NUnit.Framework; using System.Collections.ObjectModel; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ElementFindingTest.cs b/dotnet/test/common/ElementFindingTest.cs index 11bce96bf6288..8b8eced7c00b9 100644 --- a/dotnet/test/common/ElementFindingTest.cs +++ b/dotnet/test/common/ElementFindingTest.cs @@ -1,8 +1,7 @@ -using System; using NUnit.Framework; -using System.Collections.ObjectModel; -using OpenQA.Selenium.Internal; using OpenQA.Selenium.Environment; +using System; +using System.Collections.ObjectModel; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ElementPropertyTest.cs b/dotnet/test/common/ElementPropertyTest.cs index 60eb72e6c3a1e..934a2c769abfb 100644 --- a/dotnet/test/common/ElementPropertyTest.cs +++ b/dotnet/test/common/ElementPropertyTest.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; using NUnit.Framework; -using System.Collections.ObjectModel; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ElementSelectingTest.cs b/dotnet/test/common/ElementSelectingTest.cs index 8b24e42021902..02b720ccd4f8f 100644 --- a/dotnet/test/common/ElementSelectingTest.cs +++ b/dotnet/test/common/ElementSelectingTest.cs @@ -5,7 +5,7 @@ namespace OpenQA.Selenium [TestFixture] public class ElementSelectingTest : DriverTestFixture { - private const string assertCannotPerformActionFormat_action_element = "Expected exception - should not be able to {0} element {1}"; + private const string assertCannotPerformActionFormat_action_element = "Expected exception - should not be able to {0} element {1}"; [Test] public void ShouldBeAbleToSelectAnEnabledUnselectedCheckbox() diff --git a/dotnet/test/common/Environment/DriverFactory.cs b/dotnet/test/common/Environment/DriverFactory.cs index 3a37672b595b8..396ade238bfa3 100644 --- a/dotnet/test/common/Environment/DriverFactory.cs +++ b/dotnet/test/common/Environment/DriverFactory.cs @@ -1,4 +1,5 @@ using OpenQA.Selenium.Chrome; +using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Edge; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.IE; @@ -7,8 +8,6 @@ using System.Collections.Generic; using System.IO; using System.Reflection; -using NUnit.Framework; -using OpenQA.Selenium.Chromium; namespace OpenQA.Selenium.Environment { @@ -186,7 +185,7 @@ protected void OnDriverLaunching(DriverService service, DriverOptions options) } - private T MergeOptions(object baseOptions, DriverOptions overriddenOptions) where T:DriverOptions, new() + private T MergeOptions(object baseOptions, DriverOptions overriddenOptions) where T : DriverOptions, new() { // If the driver type has a static DefaultOptions property, // get the value of that property, which should be a valid @@ -208,7 +207,7 @@ protected void OnDriverLaunching(DriverService service, DriverOptions options) return mergedOptions; } - private T CreateService() where T:DriverService + private T CreateService() where T : DriverService { T service = default(T); Type serviceType = typeof(T); @@ -216,7 +215,7 @@ private T CreateService() where T:DriverService MethodInfo createDefaultServiceMethod = serviceType.GetMethod("CreateDefaultService", BindingFlags.Public | BindingFlags.Static, null, new Type[] { }, null); if (createDefaultServiceMethod != null && createDefaultServiceMethod.ReturnType == serviceType) { - service = (T)createDefaultServiceMethod.Invoke(null, new object[] {}); + service = (T)createDefaultServiceMethod.Invoke(null, new object[] { }); } return service; diff --git a/dotnet/test/common/Environment/EnvironmentManager.cs b/dotnet/test/common/Environment/EnvironmentManager.cs index ac606787d5fa2..06f8f45712b7f 100644 --- a/dotnet/test/common/Environment/EnvironmentManager.cs +++ b/dotnet/test/common/Environment/EnvironmentManager.cs @@ -1,10 +1,9 @@ using Bazel; -using System; -using System.Reflection; -using System.IO; using Newtonsoft.Json; using NUnit.Framework; using OpenQA.Selenium.Internal; +using System; +using System.IO; using System.Linq; namespace OpenQA.Selenium.Environment diff --git a/dotnet/test/common/Environment/InlinePage.cs b/dotnet/test/common/Environment/InlinePage.cs index 7eb2da3115045..f538943b56204 100644 --- a/dotnet/test/common/Environment/InlinePage.cs +++ b/dotnet/test/common/Environment/InlinePage.cs @@ -1,8 +1,5 @@ -using System; using System.Collections.Generic; -using System.Linq; using System.Text; -using System.Threading.Tasks; namespace OpenQA.Selenium.Environment { diff --git a/dotnet/test/common/Environment/TestEnvironment.cs b/dotnet/test/common/Environment/TestEnvironment.cs index f8b201575ca3c..215bb1532a538 100644 --- a/dotnet/test/common/Environment/TestEnvironment.cs +++ b/dotnet/test/common/Environment/TestEnvironment.cs @@ -28,6 +28,6 @@ class TestEnvironment public Dictionary DriverConfigs { get; set; } [JsonProperty] - public TestWebServerConfig TestWebServerConfig {get; set;} + public TestWebServerConfig TestWebServerConfig { get; set; } } } diff --git a/dotnet/test/common/Environment/TestWebServer.cs b/dotnet/test/common/Environment/TestWebServer.cs index fbae1fed90d34..9e52493645d39 100644 --- a/dotnet/test/common/Environment/TestWebServer.cs +++ b/dotnet/test/common/Environment/TestWebServer.cs @@ -1,11 +1,11 @@ using Bazel; using System; +using System.Diagnostics; using System.IO; using System.Net; -using System.Diagnostics; -using System.Text; -using System.Runtime.InteropServices; using System.Net.Http; +using System.Runtime.InteropServices; +using System.Text; namespace OpenQA.Selenium.Environment { diff --git a/dotnet/test/common/Environment/TestWebServerConfig.cs b/dotnet/test/common/Environment/TestWebServerConfig.cs index 0bc795371360c..33973bc3b6c6b 100644 --- a/dotnet/test/common/Environment/TestWebServerConfig.cs +++ b/dotnet/test/common/Environment/TestWebServerConfig.cs @@ -1,4 +1,3 @@ -using System; using Newtonsoft.Json; namespace OpenQA.Selenium.Environment diff --git a/dotnet/test/common/Environment/UrlBuilder.cs b/dotnet/test/common/Environment/UrlBuilder.cs index 8207eb622de62..7ae6d5273a9a0 100644 --- a/dotnet/test/common/Environment/UrlBuilder.cs +++ b/dotnet/test/common/Environment/UrlBuilder.cs @@ -1,10 +1,10 @@ -using System.Net.Sockets; -using System.Net; +using Newtonsoft.Json; using System; using System.Collections.Generic; -using Newtonsoft.Json; -using System.Text; +using System.Net; using System.Net.Http; +using System.Net.Sockets; +using System.Text; namespace OpenQA.Selenium.Environment { diff --git a/dotnet/test/common/Environment/WebsiteConfig.cs b/dotnet/test/common/Environment/WebsiteConfig.cs index 5e6d6fd1decb5..4c465d6ca17a4 100644 --- a/dotnet/test/common/Environment/WebsiteConfig.cs +++ b/dotnet/test/common/Environment/WebsiteConfig.cs @@ -1,9 +1,4 @@ using Newtonsoft.Json; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; namespace OpenQA.Selenium.Environment { @@ -24,5 +19,5 @@ public class WebsiteConfig [JsonProperty] public string Folder { get; set; } - } + } } diff --git a/dotnet/test/common/ExecutingAsyncJavascriptTest.cs b/dotnet/test/common/ExecutingAsyncJavascriptTest.cs index fb7974d50292b..dd7da9378a4c7 100644 --- a/dotnet/test/common/ExecutingAsyncJavascriptTest.cs +++ b/dotnet/test/common/ExecutingAsyncJavascriptTest.cs @@ -1,5 +1,5 @@ -using System; using NUnit.Framework; +using System; using System.Collections.ObjectModel; namespace OpenQA.Selenium @@ -275,7 +275,7 @@ public void ShouldBeAbleToMakeXMLHttpRequestsAndWaitForTheResponse() } [Test] - public void ThrowsIfScriptTriggersAlert() + public void ThrowsIfScriptTriggersAlert() { driver.Url = simpleTestPage; driver.Manage().Timeouts().AsynchronousJavaScript = TimeSpan.FromSeconds(5); diff --git a/dotnet/test/common/ExecutingJavascriptTest.cs b/dotnet/test/common/ExecutingJavascriptTest.cs index 32710b1eafab6..74761c9af3667 100644 --- a/dotnet/test/common/ExecutingJavascriptTest.cs +++ b/dotnet/test/common/ExecutingJavascriptTest.cs @@ -1,6 +1,6 @@ +using NUnit.Framework; using System; using System.Collections.Generic; -using NUnit.Framework; using System.Collections.ObjectModel; namespace OpenQA.Selenium @@ -165,7 +165,7 @@ public void ShouldBeAbleToExecuteSimpleJavascriptAndReturnAnObjectLiteral() Assert.That(map["foo"], Is.EqualTo("bar")); Assert.That((ReadOnlyCollection)map["baz"], Is.EqualTo((ReadOnlyCollection)expectedResult["baz"])); - Dictionary person = (Dictionary) map["person"]; + Dictionary person = (Dictionary)map["person"]; Assert.That(person, Has.Count.EqualTo(2)); Assert.That(person["first"], Is.EqualTo("John")); Assert.That(person["last"], Is.EqualTo("Doe")); diff --git a/dotnet/test/common/FormHandlingTests.cs b/dotnet/test/common/FormHandlingTests.cs index ae4935522b389..2ea024de161cc 100644 --- a/dotnet/test/common/FormHandlingTests.cs +++ b/dotnet/test/common/FormHandlingTests.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/FrameSwitchingTest.cs b/dotnet/test/common/FrameSwitchingTest.cs index 39c5e3bb05ac1..f7cc6881dd175 100644 --- a/dotnet/test/common/FrameSwitchingTest.cs +++ b/dotnet/test/common/FrameSwitchingTest.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/GetLogsTest.cs b/dotnet/test/common/GetLogsTest.cs index eec776998b668..bca8161de8c96 100644 --- a/dotnet/test/common/GetLogsTest.cs +++ b/dotnet/test/common/GetLogsTest.cs @@ -1,17 +1,14 @@ -using System.Collections.Generic; using NUnit.Framework; -using System.Collections.ObjectModel; -using OpenQA.Selenium.Remote; using OpenQA.Selenium.Chrome; -using OpenQA.Selenium.Firefox; -using OpenQA.Selenium.Environment; +using System.Collections.Generic; +using System.Collections.ObjectModel; namespace OpenQA.Selenium { [TestFixture] [IgnoreBrowser(Browser.Firefox, "Firefox driver (when using Marionette/Geckodriver) does not support logs API")] [IgnoreBrowser(Browser.IE, "IE driver does not support logs API")] - [IgnoreBrowser(Browser.Safari, "Edge driver does not support logs API")] + [IgnoreBrowser(Browser.Safari, "Edge driver does not support logs API")] public class GetLogsTest : DriverTestFixture { private IWebDriver localDriver; diff --git a/dotnet/test/common/ImplicitWaitTest.cs b/dotnet/test/common/ImplicitWaitTest.cs index 407389171f480..987ac2f3adea1 100644 --- a/dotnet/test/common/ImplicitWaitTest.cs +++ b/dotnet/test/common/ImplicitWaitTest.cs @@ -1,7 +1,7 @@ -using System; using NUnit.Framework; -using System.Collections.ObjectModel; +using System; using System.Collections.Generic; +using System.Collections.ObjectModel; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/Interactions/ActionBuilderTest.cs b/dotnet/test/common/Interactions/ActionBuilderTest.cs index 27ea9da0e4b3a..497e4107c9407 100644 --- a/dotnet/test/common/Interactions/ActionBuilderTest.cs +++ b/dotnet/test/common/Interactions/ActionBuilderTest.cs @@ -1,7 +1,7 @@ +using NUnit.Framework; using System; using System.Collections; using System.Collections.Generic; -using NUnit.Framework; namespace OpenQA.Selenium.Interactions { @@ -14,7 +14,8 @@ public void OutputsPointerEventsToDictionary() ActionBuilder actionBuilder = new ActionBuilder(); var pointerInputDevice = new PointerInputDevice(PointerKind.Pen); - var properties = new PointerInputDevice.PointerEventProperties() { + var properties = new PointerInputDevice.PointerEventProperties() + { Width = 10, Height = 11, Pressure = 0.5, @@ -35,8 +36,8 @@ public void OutputsPointerEventsToDictionary() Assert.AreEqual("pointer", dictionary["type"]); Assert.NotNull(dictionary["id"]); Assert.NotNull(dictionary["parameters"]); - var parameters = new Dictionary {{"pointerType", "pen"}}; - CollectionAssert.AreEquivalent(parameters, (IEnumerable) dictionary["parameters"]); + var parameters = new Dictionary { { "pointerType", "pen" } }; + CollectionAssert.AreEquivalent(parameters, (IEnumerable)dictionary["parameters"]); var events = new Dictionary { @@ -52,8 +53,8 @@ public void OutputsPointerEventsToDictionary() {"type", "pointerDown"}, {"button", 0} }; - var actions = (IList) dictionary["actions"]; - CollectionAssert.AreEquivalent(events, (IEnumerable) actions[0]); + var actions = (IList)dictionary["actions"]; + CollectionAssert.AreEquivalent(events, (IEnumerable)actions[0]); } } } diff --git a/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs b/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs index 559d0c27ea380..4b0f8bc5020a9 100644 --- a/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs +++ b/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs @@ -1,9 +1,7 @@ -using System; using NUnit.Framework; -using System.Text.RegularExpressions; -using System.Drawing; -using OpenQA.Selenium.Internal; using OpenQA.Selenium.Environment; +using System; +using System.Drawing; namespace OpenQA.Selenium.Interactions { diff --git a/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs b/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs index 467faf53fe223..e6ec9f83e0d1b 100644 --- a/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs +++ b/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs @@ -1,5 +1,5 @@ -using System; using NUnit.Framework; +using System; namespace OpenQA.Selenium.Interactions { diff --git a/dotnet/test/common/Interactions/CombinedInputActionsTest.cs b/dotnet/test/common/Interactions/CombinedInputActionsTest.cs index bcfdcc035db54..483f1204b7ca8 100644 --- a/dotnet/test/common/Interactions/CombinedInputActionsTest.cs +++ b/dotnet/test/common/Interactions/CombinedInputActionsTest.cs @@ -1,6 +1,5 @@ using NUnit.Framework; using OpenQA.Selenium.Environment; -using OpenQA.Selenium.Internal; using System; using System.Collections.ObjectModel; using System.Drawing; @@ -317,7 +316,7 @@ public void CombiningShiftAndClickResultsInANewWindow() Assert.AreEqual(originalTitle, driver.Title, "Should not have navigated away."); string originalHandle = driver.CurrentWindowHandle; - foreach(string newHandle in driver.WindowHandles) + foreach (string newHandle in driver.WindowHandles) { if (newHandle != originalHandle) { diff --git a/dotnet/test/common/Interactions/DragAndDropTest.cs b/dotnet/test/common/Interactions/DragAndDropTest.cs index fd29fe0b17f87..e445fdefdf21f 100644 --- a/dotnet/test/common/Interactions/DragAndDropTest.cs +++ b/dotnet/test/common/Interactions/DragAndDropTest.cs @@ -1,9 +1,8 @@ -using System; using NUnit.Framework; +using OpenQA.Selenium.Environment; +using System; using System.Drawing; using System.Text.RegularExpressions; -using OpenQA.Selenium.Environment; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Interactions { diff --git a/dotnet/test/common/JavascriptEnabledBrowserTest.cs b/dotnet/test/common/JavascriptEnabledBrowserTest.cs index f659c04e0b3f9..43ba2c7a9f91e 100644 --- a/dotnet/test/common/JavascriptEnabledBrowserTest.cs +++ b/dotnet/test/common/JavascriptEnabledBrowserTest.cs @@ -1,7 +1,7 @@ -using System; using NUnit.Framework; -using System.Drawing; using NUnit.Framework.Constraints; +using System; +using System.Drawing; namespace OpenQA.Selenium { @@ -209,7 +209,7 @@ public void ShouldBeAbleToClickALinkThatClosesAWindow() }, "No element to close window found"); closeElement.Click(); - driver.SwitchTo().Window(handle); + driver.SwitchTo().Window(handle); } } } diff --git a/dotnet/test/common/NavigationTest.cs b/dotnet/test/common/NavigationTest.cs index 68b8a3081453d..ee40894aa047c 100644 --- a/dotnet/test/common/NavigationTest.cs +++ b/dotnet/test/common/NavigationTest.cs @@ -1,5 +1,5 @@ -using System; using NUnit.Framework; +using System; namespace OpenQA.Selenium { @@ -26,7 +26,7 @@ public void ShouldGoBackAndForward() driver.Url = macbethPage; driver.Url = simpleTestPage; - + navigation.Back(); Assert.AreEqual(macbethTitle, driver.Title); diff --git a/dotnet/test/common/NetworkInterceptionTests.cs b/dotnet/test/common/NetworkInterceptionTests.cs index 4d469df8ae607..30da732cd32b0 100644 --- a/dotnet/test/common/NetworkInterceptionTests.cs +++ b/dotnet/test/common/NetworkInterceptionTests.cs @@ -1,10 +1,6 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.DevTools; +using System.Threading.Tasks; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/PageLoadingTest.cs b/dotnet/test/common/PageLoadingTest.cs index 1ecee97596ca7..32a488647c0c8 100644 --- a/dotnet/test/common/PageLoadingTest.cs +++ b/dotnet/test/common/PageLoadingTest.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/PartialLinkTextMatchTest.cs b/dotnet/test/common/PartialLinkTextMatchTest.cs index 7288d0db9f09c..dcf735ded14e8 100644 --- a/dotnet/test/common/PartialLinkTextMatchTest.cs +++ b/dotnet/test/common/PartialLinkTextMatchTest.cs @@ -50,7 +50,7 @@ public void FindMultipleElements() Assert.That(elements, Is.Not.Null); Assert.AreEqual(6, elements.Count); } - + [Test] public void DriverCanGetLinkByLinkTestIgnoringTrailingWhitespace() { diff --git a/dotnet/test/common/PositionAndSizeTest.cs b/dotnet/test/common/PositionAndSizeTest.cs index 4a766f2236d73..93e1567f9c06b 100644 --- a/dotnet/test/common/PositionAndSizeTest.cs +++ b/dotnet/test/common/PositionAndSizeTest.cs @@ -1,7 +1,7 @@ -using System; -using System.Drawing; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; +using System.Drawing; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ProxySettingTest.cs b/dotnet/test/common/ProxySettingTest.cs index 05293b7562193..93d39a8f268ba 100644 --- a/dotnet/test/common/ProxySettingTest.cs +++ b/dotnet/test/common/ProxySettingTest.cs @@ -1,3 +1,8 @@ +using BenderProxy; +using BenderProxy.Writers; +using NUnit.Framework; +using OpenQA.Selenium.Environment; +using OpenQA.Selenium.IE; using System; using System.Collections.Generic; using System.IO; @@ -5,11 +10,6 @@ using System.Net.Sockets; using System.Text; using System.Threading; -using BenderProxy; -using BenderProxy.Writers; -using NUnit.Framework; -using OpenQA.Selenium.Environment; -using OpenQA.Selenium.IE; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ProxyTest.cs b/dotnet/test/common/ProxyTest.cs index 184de81fa1d23..511d0faaf0b70 100644 --- a/dotnet/test/common/ProxyTest.cs +++ b/dotnet/test/common/ProxyTest.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.Generic; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using NUnit.Framework; -using OpenQA.Selenium.Internal; +using System.Collections.Generic; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/RelativeLocatorTest.cs b/dotnet/test/common/RelativeLocatorTest.cs index 912babe4973c8..7d67e7eeacc36 100644 --- a/dotnet/test/common/RelativeLocatorTest.cs +++ b/dotnet/test/common/RelativeLocatorTest.cs @@ -1,7 +1,7 @@ using NUnit.Framework; -using System.Collections.ObjectModel; using OpenQA.Selenium.Environment; using System.Collections.Generic; +using System.Collections.ObjectModel; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/SelectElementHandlingTest.cs b/dotnet/test/common/SelectElementHandlingTest.cs index d6431fca5b128..ce10f5356d258 100644 --- a/dotnet/test/common/SelectElementHandlingTest.cs +++ b/dotnet/test/common/SelectElementHandlingTest.cs @@ -1,5 +1,5 @@ -using System.Collections.Generic; using NUnit.Framework; +using System.Collections.Generic; using System.Collections.ObjectModel; namespace OpenQA.Selenium diff --git a/dotnet/test/common/SessionHandlingTest.cs b/dotnet/test/common/SessionHandlingTest.cs index da652fe1d94d2..af3ec6073be6d 100644 --- a/dotnet/test/common/SessionHandlingTest.cs +++ b/dotnet/test/common/SessionHandlingTest.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/ShadowRootHandlingTest.cs b/dotnet/test/common/ShadowRootHandlingTest.cs index 701d4b705ce9d..adb6b61de3fc6 100644 --- a/dotnet/test/common/ShadowRootHandlingTest.cs +++ b/dotnet/test/common/ShadowRootHandlingTest.cs @@ -1,6 +1,4 @@ -using System.Collections.Generic; using NUnit.Framework; -using System.Collections.ObjectModel; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/SlowLoadingPageTest.cs b/dotnet/test/common/SlowLoadingPageTest.cs index 52b5c944ec7af..fe6158df61c6a 100644 --- a/dotnet/test/common/SlowLoadingPageTest.cs +++ b/dotnet/test/common/SlowLoadingPageTest.cs @@ -1,5 +1,5 @@ -using System; using NUnit.Framework; +using System; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/SvgElementTest.cs b/dotnet/test/common/SvgElementTest.cs index ba3da252f2aed..c372548f4ed68 100644 --- a/dotnet/test/common/SvgElementTest.cs +++ b/dotnet/test/common/SvgElementTest.cs @@ -1,6 +1,6 @@ +using NUnit.Framework; using System.Collections.Generic; using System.Collections.ObjectModel; -using NUnit.Framework; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/TakesScreenshotTest.cs b/dotnet/test/common/TakesScreenshotTest.cs index 83f57dc3a3ddc..b541ac3eeee88 100644 --- a/dotnet/test/common/TakesScreenshotTest.cs +++ b/dotnet/test/common/TakesScreenshotTest.cs @@ -1,9 +1,9 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; using System.Drawing; using System.IO; -using NUnit.Framework; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium { @@ -386,7 +386,7 @@ private Func FrameToBeAvailableAndSwitchedTo(string frameId) IWebElement frameElement = driver.FindElement(By.Id(frameId)); driver.SwitchTo().Frame(frameElement); } - catch(Exception) + catch (Exception) { return false; } @@ -404,7 +404,7 @@ private Func ElementToBeVisibleWithId(string elementId) IWebElement element = driver.FindElement(By.Id(elementId)); return element.Displayed; } - catch(Exception) + catch (Exception) { return false; } diff --git a/dotnet/test/common/TargetLocatorTest.cs b/dotnet/test/common/TargetLocatorTest.cs index f65e3df5ac33b..0adeb85a3300e 100644 --- a/dotnet/test/common/TargetLocatorTest.cs +++ b/dotnet/test/common/TargetLocatorTest.cs @@ -1,5 +1,5 @@ -using System; using NUnit.Framework; +using System; namespace OpenQA.Selenium { @@ -56,10 +56,10 @@ public void ShouldSwitchToIframeByIndexAndBackToDefaultContent() } [Test] - public void ShouldSwitchToFrameByNameAndBackToDefaultContent() + public void ShouldSwitchToFrameByNameAndBackToDefaultContent() { driver.Url = framesPage; - + driver.SwitchTo().Frame("first"); Assert.AreEqual(driver.FindElement(By.Id("pageNumber")).Text, "1"); @@ -93,7 +93,7 @@ public void ShouldSwitchToFrameByNameAndBackToDefaultContent() public void ShouldSwitchToFrameByIndexAndBackToDefaultContent() { driver.Url = framesPage; - + driver.SwitchTo().Frame(0); Assert.AreEqual(driver.FindElement(By.Id("pageNumber")).Text, "1"); diff --git a/dotnet/test/common/TextHandlingTest.cs b/dotnet/test/common/TextHandlingTest.cs index fa99b04d80448..21d39f9bb4eaf 100644 --- a/dotnet/test/common/TextHandlingTest.cs +++ b/dotnet/test/common/TextHandlingTest.cs @@ -1,6 +1,6 @@ -using System; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; using System.Text.RegularExpressions; namespace OpenQA.Selenium @@ -146,7 +146,7 @@ public void ShouldRetainTheFormatingOfTextWithinAPreElement() driver.Url = simpleTestPage; string text = driver.FindElement(By.Id("preformatted")).Text; - Assert.That(text, Is.EqualTo(" This section has a preformatted" +NewLine + + Assert.That(text, Is.EqualTo(" This section has a preformatted" + NewLine + " text block " + NewLine + " split in four lines" + NewLine + " ")); @@ -176,7 +176,7 @@ public void ShouldBeAbleToSetMoreThanOneLineOfTextInATextArea() textarea.SendKeys(expectedText); string seenText = textarea.GetAttribute("value"); - Assert.AreEqual(expectedText ,seenText); + Assert.AreEqual(expectedText, seenText); } [Test] diff --git a/dotnet/test/common/TypingTest.cs b/dotnet/test/common/TypingTest.cs index 3bb34c5ced228..d71fa7db0ad0a 100644 --- a/dotnet/test/common/TypingTest.cs +++ b/dotnet/test/common/TypingTest.cs @@ -1,7 +1,7 @@ -using System; -using System.Runtime.InteropServices; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; +using System.Runtime.InteropServices; namespace OpenQA.Selenium { @@ -723,15 +723,18 @@ private void CheckRecordedKeySequence(IWebElement element, int expectedKeyCode) Assert.That(element.Text.Trim(), Is.AnyOf(withKeyPress, withoutKeyPress)); } - private string PrimaryModifier() { + private string PrimaryModifier() + { return (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) ? Keys.Command : Keys.Control; } - private string HomeKey() { + private string HomeKey() + { return (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) ? Keys.Up : Keys.Home; } - private string EndKey() { + private string EndKey() + { return (RuntimeInformation.IsOSPlatform(OSPlatform.OSX)) ? Keys.Down : Keys.End; } } diff --git a/dotnet/test/common/UnexpectedAlertBehaviorTest.cs b/dotnet/test/common/UnexpectedAlertBehaviorTest.cs index a1cdfd10056e9..a0ccaf1444e20 100644 --- a/dotnet/test/common/UnexpectedAlertBehaviorTest.cs +++ b/dotnet/test/common/UnexpectedAlertBehaviorTest.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using OpenQA.Selenium; using OpenQA.Selenium.Environment; using System; diff --git a/dotnet/test/common/UploadTest.cs b/dotnet/test/common/UploadTest.cs index b0a8b0292a3b6..b87c2bad0b58e 100644 --- a/dotnet/test/common/UploadTest.cs +++ b/dotnet/test/common/UploadTest.cs @@ -1,6 +1,5 @@ using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; namespace OpenQA.Selenium { @@ -36,7 +35,8 @@ public void ShouldAllowFileUploading() driver.SwitchTo().Frame("upload_target"); IWebElement body = null; - WaitFor(() => { + WaitFor(() => + { body = driver.FindElement(By.CssSelector("body")); return body.Text.Contains(LoremIpsumText); }, "Page source is: " + driver.PageSource); @@ -97,7 +97,8 @@ public void ShouldAllowFileUploadingUsingTransparentUploadElement() driver.SwitchTo().Frame("upload_target"); IWebElement body = null; - WaitFor(() => { + WaitFor(() => + { body = driver.FindElement(By.XPath("//body")); return body.Text.Contains(LoremIpsumText); }, "Page source is: " + driver.PageSource); diff --git a/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs b/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs index a5c707aa46f6b..264367069fbab 100644 --- a/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs +++ b/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs @@ -1,11 +1,10 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; +using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; -using OpenQA.Selenium.Environment; -using OpenQA.Selenium.Internal; -using NUnit.Framework; - using static OpenQA.Selenium.VirtualAuth.VirtualAuthenticatorOptions; namespace OpenQA.Selenium.VirtualAuth diff --git a/dotnet/test/common/VisibilityTest.cs b/dotnet/test/common/VisibilityTest.cs index 9cab4140ed15e..d2b1e0c3edacc 100644 --- a/dotnet/test/common/VisibilityTest.cs +++ b/dotnet/test/common/VisibilityTest.cs @@ -1,8 +1,8 @@ -using System; using NUnit.Framework; -using System.Drawing; using OpenQA.Selenium.Environment; +using System; using System.Collections.ObjectModel; +using System.Drawing; namespace OpenQA.Selenium { diff --git a/dotnet/test/common/WebElementTest.cs b/dotnet/test/common/WebElementTest.cs index 6a4928fd1e4de..4d22fdc49f85d 100644 --- a/dotnet/test/common/WebElementTest.cs +++ b/dotnet/test/common/WebElementTest.cs @@ -1,5 +1,4 @@ using NUnit.Framework; -using OpenQA.Selenium.Internal; namespace OpenQA.Selenium { @@ -45,7 +44,7 @@ public void ShouldThrowExceptionOnNonExistingElement() } [Test] - public void ShouldGetElementName() + public void ShouldGetElementName() { driver.Url = simpleTestPage; @@ -55,7 +54,7 @@ public void ShouldGetElementName() } [Test] - public void ShouldGetElementText() + public void ShouldGetElementText() { driver.Url = simpleTestPage; @@ -63,14 +62,14 @@ public void ShouldGetElementText() Assert.AreEqual("A single line of text", oneliner.Text); IWebElement twoblocks = driver.FindElement(By.Id("twoblocks")); - Assert.AreEqual("Some text" + - System.Environment.NewLine + + Assert.AreEqual("Some text" + + System.Environment.NewLine + "Some more text", twoblocks.Text); } [Test] - public void ShouldReturnWhetherElementIsDisplayed() + public void ShouldReturnWhetherElementIsDisplayed() { driver.Url = javascriptPage; @@ -107,7 +106,7 @@ public void ShouldClearRenderedElement() } [Test] - public void ShouldSendKeysToElement() + public void ShouldSendKeysToElement() { driver.Url = javascriptPage; @@ -117,7 +116,7 @@ public void ShouldSendKeysToElement() } [Test] - public void ShouldSubmitElement() + public void ShouldSubmitElement() { driver.Url = javascriptPage; @@ -128,7 +127,7 @@ public void ShouldSubmitElement() } [Test] - public void ShouldClickLinkElement() + public void ShouldClickLinkElement() { driver.Url = javascriptPage; IWebElement changedDiv = driver.FindElement(By.Id("dynamo")); @@ -138,7 +137,7 @@ public void ShouldClickLinkElement() } [Test] - public void ShouldGetAttributesFromElement() + public void ShouldGetAttributesFromElement() { driver.Url = (javascriptPage); diff --git a/dotnet/test/common/WindowSwitchingTest.cs b/dotnet/test/common/WindowSwitchingTest.cs index 4f8725bcabf13..449c494019f15 100644 --- a/dotnet/test/common/WindowSwitchingTest.cs +++ b/dotnet/test/common/WindowSwitchingTest.cs @@ -1,8 +1,8 @@ +using NUnit.Framework; +using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; -using NUnit.Framework; using System.Collections.ObjectModel; -using OpenQA.Selenium.Environment; namespace OpenQA.Selenium { @@ -37,7 +37,8 @@ public void ShouldSwitchFocusToANewWindowWhenItIsOpenedAndNotStopFutureOperation } [Test] - public void ShouldThrowNoSuchWindowException() { + public void ShouldThrowNoSuchWindowException() + { driver.Url = xhtmlTestPage; String current = driver.CurrentWindowHandle; try @@ -318,7 +319,7 @@ public void CanCloseWindowAndSwitchBackToMainWindow() // There should be two windows. We should also see each of the window titles at least once. Assert.AreEqual(2, allWindowHandles.Count); - foreach(string handle in allWindowHandles) + foreach (string handle in allWindowHandles) { if (handle != mainHandle) { diff --git a/dotnet/test/common/WindowTest.cs b/dotnet/test/common/WindowTest.cs index b6153dc70aa20..655681abb53bc 100644 --- a/dotnet/test/common/WindowTest.cs +++ b/dotnet/test/common/WindowTest.cs @@ -1,6 +1,6 @@ +using NUnit.Framework; using System; using System.Drawing; -using NUnit.Framework; namespace OpenQA.Selenium { diff --git a/dotnet/test/firefox/FirefoxDriverTest.cs b/dotnet/test/firefox/FirefoxDriverTest.cs index 505b5db2c340b..d0dc281af6fa6 100644 --- a/dotnet/test/firefox/FirefoxDriverTest.cs +++ b/dotnet/test/firefox/FirefoxDriverTest.cs @@ -1,9 +1,9 @@ -using System; -using System.Collections.Generic; using NUnit.Framework; -using System.Threading; using OpenQA.Selenium.Environment; +using System; +using System.Collections.Generic; using System.IO; +using System.Threading; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/test/firefox/FirefoxProfileTests.cs b/dotnet/test/firefox/FirefoxProfileTests.cs index 57506b0c21d68..610215e2d9539 100644 --- a/dotnet/test/firefox/FirefoxProfileTests.cs +++ b/dotnet/test/firefox/FirefoxProfileTests.cs @@ -1,5 +1,5 @@ -using System.Collections.Generic; using NUnit.Framework; +using System.Collections.Generic; namespace OpenQA.Selenium.Firefox { diff --git a/dotnet/test/ie/IeSpecificTests.cs b/dotnet/test/ie/IeSpecificTests.cs index 497cd750f376c..f4f3c2714782f 100644 --- a/dotnet/test/ie/IeSpecificTests.cs +++ b/dotnet/test/ie/IeSpecificTests.cs @@ -1,10 +1,10 @@ using NUnit.Framework; -using System; -using System.Linq; using OpenQA.Selenium.Environment; -using System.Collections.ObjectModel; using OpenQA.Selenium.Interactions; +using System; using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; namespace OpenQA.Selenium.IE { diff --git a/dotnet/test/remote/ChromeRemoteWebDriver.cs b/dotnet/test/remote/ChromeRemoteWebDriver.cs index 98b5d9d2861b6..fa713b83e0f1e 100644 --- a/dotnet/test/remote/ChromeRemoteWebDriver.cs +++ b/dotnet/test/remote/ChromeRemoteWebDriver.cs @@ -1,5 +1,5 @@ -using System; -using OpenQA.Selenium.Chrome; +using OpenQA.Selenium.Chrome; +using System; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/test/remote/EdgeRemoteWebDriver.cs b/dotnet/test/remote/EdgeRemoteWebDriver.cs index 44225deaf8ca1..b5cbd3a648f29 100644 --- a/dotnet/test/remote/EdgeRemoteWebDriver.cs +++ b/dotnet/test/remote/EdgeRemoteWebDriver.cs @@ -1,5 +1,5 @@ -using System; -using OpenQA.Selenium.Edge; +using OpenQA.Selenium.Edge; +using System; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/test/remote/FirefoxRemoteWebDriver.cs b/dotnet/test/remote/FirefoxRemoteWebDriver.cs index 67e127dd76cb5..1d67f3b41c11c 100644 --- a/dotnet/test/remote/FirefoxRemoteWebDriver.cs +++ b/dotnet/test/remote/FirefoxRemoteWebDriver.cs @@ -1,5 +1,5 @@ -using System; -using OpenQA.Selenium.Firefox; +using OpenQA.Selenium.Firefox; +using System; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/test/remote/RemoteSessionCreationTests.cs b/dotnet/test/remote/RemoteSessionCreationTests.cs index e0662abb569be..c82400b45633c 100644 --- a/dotnet/test/remote/RemoteSessionCreationTests.cs +++ b/dotnet/test/remote/RemoteSessionCreationTests.cs @@ -1,11 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using NUnit.Framework; -using OpenQA.Selenium; -using OpenQA.Selenium.Remote; +using NUnit.Framework; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/test/remote/RemoteWebDriverSpecificTests.cs b/dotnet/test/remote/RemoteWebDriverSpecificTests.cs index c9ac7758925d2..f27e377e4ad86 100644 --- a/dotnet/test/remote/RemoteWebDriverSpecificTests.cs +++ b/dotnet/test/remote/RemoteWebDriverSpecificTests.cs @@ -1,9 +1,7 @@ -using System; -using System.Collections.ObjectModel; -using System.Text; using NUnit.Framework; using OpenQA.Selenium.Environment; using OpenQA.Selenium.IE; +using System; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/test/remote/TestInternetExplorerRemoteWebDriver.cs b/dotnet/test/remote/TestInternetExplorerRemoteWebDriver.cs index 6b611d6f8d1a8..71059322bccdb 100644 --- a/dotnet/test/remote/TestInternetExplorerRemoteWebDriver.cs +++ b/dotnet/test/remote/TestInternetExplorerRemoteWebDriver.cs @@ -1,5 +1,5 @@ -using System; using OpenQA.Selenium.IE; +using System; namespace OpenQA.Selenium.Remote { diff --git a/dotnet/test/support/Events/EventFiringWebDriverTest.cs b/dotnet/test/support/Events/EventFiringWebDriverTest.cs index 2dfa8639b6b71..972be725adfa9 100644 --- a/dotnet/test/support/Events/EventFiringWebDriverTest.cs +++ b/dotnet/test/support/Events/EventFiringWebDriverTest.cs @@ -1,10 +1,9 @@ +using Moq; +using NUnit.Framework; using System; using System.Collections.Generic; -using System.Text; -using NUnit.Framework; using System.Collections.ObjectModel; -using OpenQA.Selenium.Internal; -using Moq; +using System.Text; namespace OpenQA.Selenium.Support.Events { diff --git a/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs b/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs index 171b26b85ef5a..9fe397d86ec31 100644 --- a/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs +++ b/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs @@ -1,8 +1,8 @@ +using Moq; +using NUnit.Framework; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; -using Moq; -using NUnit.Framework; namespace OpenQA.Selenium.Support.Extensions { diff --git a/dotnet/test/support/UI/DefaultWaitTest.cs b/dotnet/test/support/UI/DefaultWaitTest.cs index 782a7c21fba51..d929051fc5a2f 100644 --- a/dotnet/test/support/UI/DefaultWaitTest.cs +++ b/dotnet/test/support/UI/DefaultWaitTest.cs @@ -1,7 +1,7 @@ +using Moq; +using NUnit.Framework; using System; using System.Runtime.CompilerServices; -using NUnit.Framework; -using Moq; namespace OpenQA.Selenium.Support.UI { diff --git a/dotnet/test/support/UI/LoadableComponentTests.cs b/dotnet/test/support/UI/LoadableComponentTests.cs index 0ba71931fea51..d81c1111b98fa 100644 --- a/dotnet/test/support/UI/LoadableComponentTests.cs +++ b/dotnet/test/support/UI/LoadableComponentTests.cs @@ -1,5 +1,5 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; +using System; namespace OpenQA.Selenium.Support.UI { diff --git a/dotnet/test/support/UI/SelectBrowserTests.cs b/dotnet/test/support/UI/SelectBrowserTests.cs index 1cee99c5db2b9..1f29fb5e22b5f 100644 --- a/dotnet/test/support/UI/SelectBrowserTests.cs +++ b/dotnet/test/support/UI/SelectBrowserTests.cs @@ -1,7 +1,7 @@ -using System; -using System.Collections.Generic; using NUnit.Framework; using OpenQA.Selenium.Environment; +using System; +using System.Collections.Generic; namespace OpenQA.Selenium.Support.UI { diff --git a/dotnet/test/support/UI/SelectTests.cs b/dotnet/test/support/UI/SelectTests.cs index c21f817940a85..7d4043d031d34 100644 --- a/dotnet/test/support/UI/SelectTests.cs +++ b/dotnet/test/support/UI/SelectTests.cs @@ -1,9 +1,9 @@ +using Moq; +using NUnit.Framework; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; -using NUnit.Framework; using System.Reflection; -using System; -using Moq; namespace OpenQA.Selenium.Support.UI { diff --git a/dotnet/test/support/UI/SlowLoadableComponentTest.cs b/dotnet/test/support/UI/SlowLoadableComponentTest.cs index 41bf093a87dee..07efeaea61bc1 100644 --- a/dotnet/test/support/UI/SlowLoadableComponentTest.cs +++ b/dotnet/test/support/UI/SlowLoadableComponentTest.cs @@ -1,5 +1,5 @@ -using System; -using NUnit.Framework; +using NUnit.Framework; +using System; namespace OpenQA.Selenium.Support.UI { diff --git a/dotnet/test/support/UI/WebDriverWaitTest.cs b/dotnet/test/support/UI/WebDriverWaitTest.cs index 092093c0f63a1..b6b2be10b56da 100644 --- a/dotnet/test/support/UI/WebDriverWaitTest.cs +++ b/dotnet/test/support/UI/WebDriverWaitTest.cs @@ -1,6 +1,6 @@ -using System; using Moq; using NUnit.Framework; +using System; namespace OpenQA.Selenium.Support.UI { @@ -20,7 +20,7 @@ public void SetUp() { executed = false; } - + [Test] public void CanGetListOfOptions() { @@ -59,7 +59,7 @@ public void ThrowsForInvalidTypes() var intCondition = GetCondition(() => 1, () => 2); var wait = new WebDriverWait(new TickingClock(), mockDriver.Object, FIVE_SECONDS, ZERO_SECONDS); - + Assert.Throws(typeof(ArgumentException), () => wait.Until(nullableBooleanCondition)); Assert.Throws(typeof(ArgumentException), () => wait.Until(intCondition)); } @@ -94,9 +94,9 @@ public void PassesWebDriverFromConstructorToExpectation() Func condition = driver => driver.CurrentWindowHandle; var wait = new WebDriverWait(new TickingClock(), mockDriver.Object, FIVE_SECONDS, ZERO_SECONDS); - + Assert.AreEqual(SOME_STRING, wait.Until(condition)); - + mockDriver.Verify(_ => _.CurrentWindowHandle, Times.Once); } @@ -115,7 +115,7 @@ public void ChainsNoSuchElementExceptionWhenTimingOut() } catch (WebDriverTimeoutException e) { - Assert.IsInstanceOf(typeof (NoSuchElementException), e.InnerException); + Assert.IsInstanceOf(typeof(NoSuchElementException), e.InnerException); } } @@ -131,7 +131,7 @@ private Func GetCondition(Func first, Func second) return first(); }; } - + private static IClock GetClock() { return new TickingClock(TimeSpan.FromMilliseconds(500)); @@ -144,7 +144,7 @@ class TickingClock : IClock public TickingClock() : this(TimeSpan.FromSeconds(0)) { - + } public TickingClock(TimeSpan increment)