diff --git a/dotnet/.editorconfig b/dotnet/.editorconfig index e25f2c3ede71c..4ebb114e2a2f4 100644 --- a/dotnet/.editorconfig +++ b/dotnet/.editorconfig @@ -1,2 +1,201 @@ +# editorconfig.org + +# top-most EditorConfig file +root = true + +# Default settings: +# A newline ending every file +# Use 4 spaces as indentation +[*] +insert_final_newline = true +indent_style = space +indent_size = 4 +trim_trailing_whitespace = true + +# Specify UTF-8 without byte-order mark +[*.{csproj,locproj,nativeproj,proj,resx,slnx,vbproj}] +charset = utf-8 + +# Generated code +[*{_AssemblyInfo.cs,.notsupported.cs,AsmOffsets.cs}] +generated_code = true + +# C# files [*.cs] -csharp_style_namespace_declarations=file_scoped:suggestion +# New line preferences +csharp_new_line_before_open_brace = all +csharp_new_line_before_else = true +csharp_new_line_before_catch = true +csharp_new_line_before_finally = true +csharp_new_line_before_members_in_object_initializers = true +csharp_new_line_before_members_in_anonymous_types = true +csharp_new_line_between_query_expression_clauses = true + +# Indentation preferences +csharp_indent_block_contents = true +csharp_indent_braces = false +csharp_indent_case_contents = true +csharp_indent_case_contents_when_block = false +csharp_indent_switch_labels = true +csharp_indent_labels = one_less_than_current + +# Modifier preferences +csharp_preferred_modifier_order = public,private,protected,internal,file,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,required,volatile,async:suggestion + +# avoid this. unless absolutely necessary +dotnet_style_qualification_for_field = false:suggestion +dotnet_style_qualification_for_property = false:suggestion +dotnet_style_qualification_for_method = false:suggestion +dotnet_style_qualification_for_event = false:suggestion + +# Types: use keywords instead of BCL types, and permit var only when the type is clear +csharp_style_var_for_built_in_types = false:suggestion +csharp_style_var_when_type_is_apparent = false:none +csharp_style_var_elsewhere = false:suggestion +dotnet_style_predefined_type_for_locals_parameters_members = true:suggestion +dotnet_style_predefined_type_for_member_access = true:suggestion + +# name all constant fields using PascalCase +dotnet_naming_rule.constant_fields_should_be_pascal_case.severity = suggestion +dotnet_naming_rule.constant_fields_should_be_pascal_case.symbols = constant_fields +dotnet_naming_rule.constant_fields_should_be_pascal_case.style = pascal_case_style +dotnet_naming_symbols.constant_fields.applicable_kinds = field +dotnet_naming_symbols.constant_fields.required_modifiers = const +dotnet_naming_style.pascal_case_style.capitalization = pascal_case + +# static fields should have s_ prefix +dotnet_naming_rule.static_fields_should_have_prefix.severity = suggestion +dotnet_naming_rule.static_fields_should_have_prefix.symbols = static_fields +dotnet_naming_rule.static_fields_should_have_prefix.style = static_prefix_style +dotnet_naming_symbols.static_fields.applicable_kinds = field +dotnet_naming_symbols.static_fields.required_modifiers = static +dotnet_naming_symbols.static_fields.applicable_accessibilities = private, internal, private_protected +dotnet_naming_style.static_prefix_style.required_prefix = s_ +dotnet_naming_style.static_prefix_style.capitalization = camel_case + +# internal and private fields should be _camelCase +dotnet_naming_rule.camel_case_for_private_internal_fields.severity = suggestion +dotnet_naming_rule.camel_case_for_private_internal_fields.symbols = private_internal_fields +dotnet_naming_rule.camel_case_for_private_internal_fields.style = camel_case_underscore_style +dotnet_naming_symbols.private_internal_fields.applicable_kinds = field +dotnet_naming_symbols.private_internal_fields.applicable_accessibilities = private, internal +dotnet_naming_style.camel_case_underscore_style.required_prefix = _ +dotnet_naming_style.camel_case_underscore_style.capitalization = camel_case + +# Code style defaults +csharp_using_directive_placement = outside_namespace:suggestion +dotnet_sort_system_directives_first = true +csharp_prefer_braces = true:silent +csharp_preserve_single_line_blocks = true:none +csharp_preserve_single_line_statements = false:none +csharp_prefer_static_local_function = true:suggestion +csharp_prefer_simple_using_statement = false:none +csharp_style_prefer_switch_expression = true:suggestion +dotnet_style_readonly_field = true:suggestion + +# Expression-level preferences +dotnet_style_object_initializer = true:suggestion +dotnet_style_collection_initializer = true:suggestion +dotnet_style_prefer_collection_expression = when_types_exactly_match +dotnet_style_explicit_tuple_names = true:suggestion +dotnet_style_coalesce_expression = true:suggestion +dotnet_style_null_propagation = true +dotnet_style_prefer_is_null_check_over_reference_equality_method = true:suggestion +dotnet_style_prefer_inferred_tuple_names = true:suggestion +dotnet_style_prefer_inferred_anonymous_type_member_names = true:suggestion +dotnet_style_prefer_auto_properties = true:suggestion +dotnet_style_prefer_conditional_expression_over_assignment = true:silent +dotnet_style_prefer_conditional_expression_over_return = true:silent +csharp_prefer_simple_default_expression = true:suggestion + +# Expression-bodied members +csharp_style_expression_bodied_methods = true:silent +csharp_style_expression_bodied_constructors = true:silent +csharp_style_expression_bodied_operators = true:silent +csharp_style_expression_bodied_properties = true:silent +csharp_style_expression_bodied_indexers = true:silent +csharp_style_expression_bodied_accessors = true:silent +csharp_style_expression_bodied_lambdas = true:silent +csharp_style_expression_bodied_local_functions = true:silent + +# Pattern matching +csharp_style_pattern_matching_over_is_with_cast_check = true:suggestion +csharp_style_pattern_matching_over_as_with_null_check = true:suggestion +csharp_style_inlined_variable_declaration = true:suggestion + +# Null checking preferences +csharp_style_throw_expression = true:suggestion +csharp_style_conditional_delegate_call = true:suggestion + +# Other features +csharp_style_prefer_index_operator = false:none +csharp_style_prefer_range_operator = false:none +csharp_style_pattern_local_over_anonymous_function = false:none + +# Space preferences +csharp_space_after_cast = false +csharp_space_after_colon_in_inheritance_clause = true +csharp_space_after_comma = true +csharp_space_after_dot = false +csharp_space_after_keywords_in_control_flow_statements = true +csharp_space_after_semicolon_in_for_statement = true +csharp_space_around_binary_operators = before_and_after +csharp_space_around_declaration_statements = do_not_ignore +csharp_space_before_colon_in_inheritance_clause = true +csharp_space_before_comma = false +csharp_space_before_dot = false +csharp_space_before_open_square_brackets = false +csharp_space_before_semicolon_in_for_statement = false +csharp_space_between_empty_square_brackets = false +csharp_space_between_method_call_empty_parameter_list_parentheses = false +csharp_space_between_method_call_name_and_opening_parenthesis = false +csharp_space_between_method_call_parameter_list_parentheses = false +csharp_space_between_method_declaration_empty_parameter_list_parentheses = false +csharp_space_between_method_declaration_name_and_open_parenthesis = false +csharp_space_between_method_declaration_parameter_list_parentheses = false +csharp_space_between_parentheses = false +csharp_space_between_square_brackets = false + +# License header +file_header_template = Licensed to the .NET Foundation under one or more agreements.\nThe .NET Foundation licenses this file to you under the MIT license. + +[src/libraries/System.Net.Http/src/System/Net/Http/{SocketsHttpHandler/Http3RequestStream.cs,BrowserHttpHandler/BrowserHttpHandler.cs}] +# disable CA2025, the analyzer throws a NullReferenceException when processing this file: https://github.com/dotnet/roslyn-analyzers/issues/7652 +dotnet_diagnostic.CA2025.severity = none + +# C++ Files +[*.{cpp,h,in}] +curly_bracket_next_line = true +indent_brace_style = Allman + +# Xml project files +[*.{csproj,vbproj,vcxproj,vcxproj.filters,proj,nativeproj,locproj}] +indent_size = 2 + +# Xml build files +[*.builds] +indent_size = 2 + +# Xml files +[*.{resx,ruleset,slnx,stylecop,xml}] +indent_size = 2 + +# Xml resource files +[*.resx] +# match Visual Studio behavior +insert_final_newline = false +trim_trailing_whitespace = false + +# Xml config files +[*.{props,targets,config,nuspec}] +indent_size = 2 + +# Data serialization +[*.{json,yaml,yml}] +indent_size = 2 + +# Shell scripts +[*.sh] +end_of_line = lf +[*.{cmd,bat}] +end_of_line = crlf diff --git a/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs b/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs index 61c5ce4008f05..0fa0e1af0f282 100644 --- a/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs +++ b/dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Browser; diff --git a/dotnet/src/webdriver/BiDi/Browser/ClientWindow.cs b/dotnet/src/webdriver/BiDi/Browser/ClientWindow.cs index d8203dac5962b..77b2a892fe1d1 100644 --- a/dotnet/src/webdriver/BiDi/Browser/ClientWindow.cs +++ b/dotnet/src/webdriver/BiDi/Browser/ClientWindow.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Browser; diff --git a/dotnet/src/webdriver/BiDi/Browser/ClientWindowInfo.cs b/dotnet/src/webdriver/BiDi/Browser/ClientWindowInfo.cs index d457830bf167d..b81c292ed9cb4 100644 --- a/dotnet/src/webdriver/BiDi/Browser/ClientWindowInfo.cs +++ b/dotnet/src/webdriver/BiDi/Browser/ClientWindowInfo.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Browser; diff --git a/dotnet/src/webdriver/BiDi/Browser/GetClientWindowsCommand.cs b/dotnet/src/webdriver/BiDi/Browser/GetClientWindowsCommand.cs index 08618af735406..00d0d7f7d9c53 100644 --- a/dotnet/src/webdriver/BiDi/Browser/GetClientWindowsCommand.cs +++ b/dotnet/src/webdriver/BiDi/Browser/GetClientWindowsCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Browser; diff --git a/dotnet/src/webdriver/BiDi/Browser/GetUserContextsCommand.cs b/dotnet/src/webdriver/BiDi/Browser/GetUserContextsCommand.cs index 01c7749909acd..9b6343323105d 100644 --- a/dotnet/src/webdriver/BiDi/Browser/GetUserContextsCommand.cs +++ b/dotnet/src/webdriver/BiDi/Browser/GetUserContextsCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Browser; diff --git a/dotnet/src/webdriver/BiDi/Browser/SetDownloadBehaviorCommand.cs b/dotnet/src/webdriver/BiDi/Browser/SetDownloadBehaviorCommand.cs index 8ba02441392db..177406251f6a9 100644 --- a/dotnet/src/webdriver/BiDi/Browser/SetDownloadBehaviorCommand.cs +++ b/dotnet/src/webdriver/BiDi/Browser/SetDownloadBehaviorCommand.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Browser; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContext.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContext.cs index 56191fc082e33..7f65dd918578d 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContext.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContext.cs @@ -17,8 +17,8 @@ // under the License. // -using System.Threading.Tasks; using System; +using System.Threading.Tasks; using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInputModule.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInputModule.cs index 1a77c4fecc38c..96de8180354ab 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInputModule.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInputModule.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Collections.Generic; using System.Threading.Tasks; using OpenQA.Selenium.BiDi.Input; -using System.Collections.Generic; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextLogModule.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextLogModule.cs index d98fe04948631..331486dcd568e 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextLogModule.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextLogModule.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Log; -using System.Threading.Tasks; using System; +using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Log; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextNetworkModule.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextNetworkModule.cs index 46703be62af13..2c27f96e98635 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextNetworkModule.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextNetworkModule.cs @@ -17,8 +17,8 @@ // under the License. // -using System.Threading.Tasks; using System; +using System.Threading.Tasks; using OpenQA.Selenium.BiDi.Network; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/CaptureScreenshotCommand.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/CaptureScreenshotCommand.cs index 28a2441890b7d..070575f87a742 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/CaptureScreenshotCommand.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/CaptureScreenshotCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/CreateCommand.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/CreateCommand.cs index 67bd979171ce2..06d01ae5ff886 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/CreateCommand.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/CreateCommand.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Text.Json.Serialization; using OpenQA.Selenium.BiDi.Communication; using OpenQA.Selenium.BiDi.Communication.Json.Converters; -using System.Text.Json.Serialization; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/DownloadEndEventArgs.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/DownloadEndEventArgs.cs index 1e3dda74f7808..f5f57702d5fa7 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/DownloadEndEventArgs.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/DownloadEndEventArgs.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; using System; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/GetTreeCommand.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/GetTreeCommand.cs index c7ff247308e51..440398431bf42 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/GetTreeCommand.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/GetTreeCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/LocateNodesCommand.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/LocateNodesCommand.cs index 3d18d994b84eb..24dd48db92372 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/LocateNodesCommand.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/LocateNodesCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/Locator.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/Locator.cs index 2db99cb07f3f6..b75bc75d6a10b 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/Locator.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/Locator.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/NavigateCommand.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/NavigateCommand.cs index c8b53d40dbc10..9363de17b147a 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/NavigateCommand.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/NavigateCommand.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Text.Json.Serialization; using OpenQA.Selenium.BiDi.Communication; using OpenQA.Selenium.BiDi.Communication.Json.Converters; -using System.Text.Json.Serialization; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/Navigation.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/Navigation.cs index 9acb3047f7c52..a91765032bf54 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/Navigation.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/Navigation.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/PrintCommand.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/PrintCommand.cs index 85cad725ca42a..fc91effc35810 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/PrintCommand.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/PrintCommand.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/BrowsingContext/UserPromptOpenedEventArgs.cs b/dotnet/src/webdriver/BiDi/BrowsingContext/UserPromptOpenedEventArgs.cs index 3a88648222921..e0ae0cb0d8b54 100644 --- a/dotnet/src/webdriver/BiDi/BrowsingContext/UserPromptOpenedEventArgs.cs +++ b/dotnet/src/webdriver/BiDi/BrowsingContext/UserPromptOpenedEventArgs.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/src/webdriver/BiDi/Communication/Broker.cs b/dotnet/src/webdriver/BiDi/Communication/Broker.cs index 64f82aa59499f..08717f57053d8 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Broker.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Broker.cs @@ -17,8 +17,6 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Transport; -using OpenQA.Selenium.Internal.Logging; using System; using System.Collections.Concurrent; using System.Collections.Generic; @@ -27,6 +25,8 @@ using System.Text.Json.Serialization.Metadata; using System.Threading; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication.Transport; +using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.BiDi.Communication; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserClientWindowConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserClientWindowConverter.cs index 5849c3bfe6cf4..a96f59b9d4376 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserClientWindowConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserClientWindowConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Browser; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Browser; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserUserContextConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserUserContextConverter.cs index 3d68e7f5cd150..f5a2988da6f97 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserUserContextConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/BrowserUserContextConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Browser; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Browser; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/ChannelConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/ChannelConverter.cs index 43110782e8f40..ed6ab8cbff2f7 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/ChannelConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/ChannelConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/CollectorConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/CollectorConverter.cs index 836f252435a4d..4f2c4d8054d0b 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/CollectorConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/CollectorConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Network; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Network; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Enumerable/InputSourceActionsConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Enumerable/InputSourceActionsConverter.cs index a73f141e086ee..ae0d05c65bff8 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Enumerable/InputSourceActionsConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Enumerable/InputSourceActionsConverter.cs @@ -17,13 +17,13 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Internal; -using OpenQA.Selenium.BiDi.Input; using System; using System.Collections.Generic; using System.Linq; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Internal; +using OpenQA.Selenium.BiDi.Input; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters.Enumerable; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/HandleConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/HandleConverter.cs index f2e9af7139840..e7d69cd7687ca 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/HandleConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/HandleConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InputOriginConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InputOriginConverter.cs index f47b25bb7ee37..0724867e391d9 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InputOriginConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InputOriginConverter.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.Input; using System; using System.Diagnostics.CodeAnalysis; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Input; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InterceptConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InterceptConverter.cs index d789065e8d458..a82bc32ea6cee 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InterceptConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InterceptConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Network; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Network; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InternalIdConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InternalIdConverter.cs index ec65181f7c9bb..4d9150392517a 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InternalIdConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/InternalIdConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/NavigationConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/NavigationConverter.cs index ce9d27b9a2b63..aa3ba641f7337 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/NavigationConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/NavigationConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.BrowsingContext; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/DownloadEndEventArgsConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/DownloadEndEventArgsConverter.cs index b065d172b41f4..e9003cc704353 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/DownloadEndEventArgsConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/DownloadEndEventArgsConverter.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.BrowsingContext; -using OpenQA.Selenium.BiDi.Communication.Json.Internal; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.BrowsingContext; +using OpenQA.Selenium.BiDi.Communication.Json.Internal; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/EvaluateResultConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/EvaluateResultConverter.cs index 25f94b42b4dc7..fc1183fc56a65 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/EvaluateResultConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/EvaluateResultConverter.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Internal; -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Internal; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/LogEntryConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/LogEntryConverter.cs index 53f90772a3b0e..be4bcc87c68ab 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/LogEntryConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/LogEntryConverter.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Internal; -using OpenQA.Selenium.BiDi.Log; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Internal; +using OpenQA.Selenium.BiDi.Log; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RealmInfoConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RealmInfoConverter.cs index 288ffb496a3f8..7f3293d4f89cf 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RealmInfoConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RealmInfoConverter.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Internal; -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Internal; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RemoteValueConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RemoteValueConverter.cs index 6879403266419..651287389bed7 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RemoteValueConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/Polymorphic/RemoteValueConverter.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Internal; -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Internal; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PreloadScriptConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PreloadScriptConverter.cs index e7fc7bc4be8ff..cd49cd74f24e4 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PreloadScriptConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PreloadScriptConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PrintPageRangeConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PrintPageRangeConverter.cs index 74b7312125742..27b7725b42520 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PrintPageRangeConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/PrintPageRangeConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.BrowsingContext; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RealmConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RealmConverter.cs index c99f371a3ea5c..850767752bcef 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RealmConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RealmConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Script; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Script; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RequestConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RequestConverter.cs index 3b2265a988a72..89b076d041361 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RequestConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/RequestConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Network; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Network; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/WebExtensionConverter.cs b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/WebExtensionConverter.cs index f29dc90567fad..3747bcc27c307 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Json/Converters/WebExtensionConverter.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Json/Converters/WebExtensionConverter.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.WebExtension; using System; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.WebExtension; namespace OpenQA.Selenium.BiDi.Communication.Json.Converters; diff --git a/dotnet/src/webdriver/BiDi/Communication/Transport/ITransport.cs b/dotnet/src/webdriver/BiDi/Communication/Transport/ITransport.cs index c47a3aaad38eb..9805a1a505bd5 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Transport/ITransport.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Transport/ITransport.cs @@ -17,9 +17,9 @@ // under the License. // -using System.Threading.Tasks; -using System.Threading; using System; +using System.Threading; +using System.Threading.Tasks; namespace OpenQA.Selenium.BiDi.Communication.Transport; diff --git a/dotnet/src/webdriver/BiDi/Communication/Transport/WebSocketTransport.cs b/dotnet/src/webdriver/BiDi/Communication/Transport/WebSocketTransport.cs index f18e630ca8b16..a4c5c74a53c1e 100644 --- a/dotnet/src/webdriver/BiDi/Communication/Transport/WebSocketTransport.cs +++ b/dotnet/src/webdriver/BiDi/Communication/Transport/WebSocketTransport.cs @@ -20,9 +20,9 @@ using System; using System.IO; using System.Net.WebSockets; -using System.Threading.Tasks; -using System.Threading; using System.Text; +using System.Threading; +using System.Threading.Tasks; using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.BiDi.Communication.Transport; diff --git a/dotnet/src/webdriver/BiDi/Emulation/SetForcedColorsModeThemeOverrideCommand.cs b/dotnet/src/webdriver/BiDi/Emulation/SetForcedColorsModeThemeOverrideCommand.cs index b1b359995b2be..c7a82655eead3 100644 --- a/dotnet/src/webdriver/BiDi/Emulation/SetForcedColorsModeThemeOverrideCommand.cs +++ b/dotnet/src/webdriver/BiDi/Emulation/SetForcedColorsModeThemeOverrideCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Emulation; diff --git a/dotnet/src/webdriver/BiDi/Emulation/SetScreenOrientationOverrideCommand.cs b/dotnet/src/webdriver/BiDi/Emulation/SetScreenOrientationOverrideCommand.cs index cd30977fea772..5655c02914959 100644 --- a/dotnet/src/webdriver/BiDi/Emulation/SetScreenOrientationOverrideCommand.cs +++ b/dotnet/src/webdriver/BiDi/Emulation/SetScreenOrientationOverrideCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Emulation; diff --git a/dotnet/src/webdriver/BiDi/Emulation/SetTimezoneOverrideCommand.cs b/dotnet/src/webdriver/BiDi/Emulation/SetTimezoneOverrideCommand.cs index aecb19b29774d..c84bd223e5bf9 100644 --- a/dotnet/src/webdriver/BiDi/Emulation/SetTimezoneOverrideCommand.cs +++ b/dotnet/src/webdriver/BiDi/Emulation/SetTimezoneOverrideCommand.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Emulation; diff --git a/dotnet/src/webdriver/BiDi/Emulation/SetUserAgentOverrideCommand.cs b/dotnet/src/webdriver/BiDi/Emulation/SetUserAgentOverrideCommand.cs index c9f12e7ef28df..c1910380f3a3d 100644 --- a/dotnet/src/webdriver/BiDi/Emulation/SetUserAgentOverrideCommand.cs +++ b/dotnet/src/webdriver/BiDi/Emulation/SetUserAgentOverrideCommand.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Emulation; diff --git a/dotnet/src/webdriver/BiDi/Input/InputModule.cs b/dotnet/src/webdriver/BiDi/Input/InputModule.cs index 8d2662caa035a..d5ad4cd5dfa7b 100644 --- a/dotnet/src/webdriver/BiDi/Input/InputModule.cs +++ b/dotnet/src/webdriver/BiDi/Input/InputModule.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Input; diff --git a/dotnet/src/webdriver/BiDi/Input/Origin.cs b/dotnet/src/webdriver/BiDi/Input/Origin.cs index fc1d4dcc61377..338693d18ee46 100644 --- a/dotnet/src/webdriver/BiDi/Input/Origin.cs +++ b/dotnet/src/webdriver/BiDi/Input/Origin.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Input; diff --git a/dotnet/src/webdriver/BiDi/Input/PerformActionsCommand.cs b/dotnet/src/webdriver/BiDi/Input/PerformActionsCommand.cs index 92b751be69213..cbee8c4d03395 100644 --- a/dotnet/src/webdriver/BiDi/Input/PerformActionsCommand.cs +++ b/dotnet/src/webdriver/BiDi/Input/PerformActionsCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Input; diff --git a/dotnet/src/webdriver/BiDi/Input/SetFilesCommand.cs b/dotnet/src/webdriver/BiDi/Input/SetFilesCommand.cs index 3b0736522281d..744eb7b7bb7d3 100644 --- a/dotnet/src/webdriver/BiDi/Input/SetFilesCommand.cs +++ b/dotnet/src/webdriver/BiDi/Input/SetFilesCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Input; diff --git a/dotnet/src/webdriver/BiDi/Input/SourceActions.cs b/dotnet/src/webdriver/BiDi/Input/SourceActions.cs index cfc5983e2b066..6f0cdba200435 100644 --- a/dotnet/src/webdriver/BiDi/Input/SourceActions.cs +++ b/dotnet/src/webdriver/BiDi/Input/SourceActions.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; -using OpenQA.Selenium.BiDi.Communication.Json.Converters.Enumerable; using System; using System.Collections; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; +using OpenQA.Selenium.BiDi.Communication.Json.Converters.Enumerable; namespace OpenQA.Selenium.BiDi.Input; diff --git a/dotnet/src/webdriver/BiDi/Log/LogEntry.cs b/dotnet/src/webdriver/BiDi/Log/LogEntry.cs index 783495c3fef26..1c3efebd3355a 100644 --- a/dotnet/src/webdriver/BiDi/Log/LogEntry.cs +++ b/dotnet/src/webdriver/BiDi/Log/LogEntry.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; -using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; using System; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; +using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; namespace OpenQA.Selenium.BiDi.Log; diff --git a/dotnet/src/webdriver/BiDi/Log/LogModule.cs b/dotnet/src/webdriver/BiDi/Log/LogModule.cs index a3887d7f052cf..98935a98a1d81 100644 --- a/dotnet/src/webdriver/BiDi/Log/LogModule.cs +++ b/dotnet/src/webdriver/BiDi/Log/LogModule.cs @@ -17,8 +17,8 @@ // under the License. // -using System.Threading.Tasks; using System; +using System.Threading.Tasks; using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Log; diff --git a/dotnet/src/webdriver/BiDi/Module.cs b/dotnet/src/webdriver/BiDi/Module.cs index 202bc30bbcd75..14e1e4fe846e5 100644 --- a/dotnet/src/webdriver/BiDi/Module.cs +++ b/dotnet/src/webdriver/BiDi/Module.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Text.Json; using OpenQA.Selenium.BiDi.Communication; using OpenQA.Selenium.BiDi.Communication.Json; -using System.Text.Json; namespace OpenQA.Selenium.BiDi; diff --git a/dotnet/src/webdriver/BiDi/Network/AddDataCollectorCommand.cs b/dotnet/src/webdriver/BiDi/Network/AddDataCollectorCommand.cs index 974ea765983ea..8a79dd4055f0c 100644 --- a/dotnet/src/webdriver/BiDi/Network/AddDataCollectorCommand.cs +++ b/dotnet/src/webdriver/BiDi/Network/AddDataCollectorCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/AddInterceptCommand.cs b/dotnet/src/webdriver/BiDi/Network/AddInterceptCommand.cs index f48115877588a..22f73f3493092 100644 --- a/dotnet/src/webdriver/BiDi/Network/AddInterceptCommand.cs +++ b/dotnet/src/webdriver/BiDi/Network/AddInterceptCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/BaseParametersEventArgs.cs b/dotnet/src/webdriver/BiDi/Network/BaseParametersEventArgs.cs index a1c990228a2eb..fa003fa04d27c 100644 --- a/dotnet/src/webdriver/BiDi/Network/BaseParametersEventArgs.cs +++ b/dotnet/src/webdriver/BiDi/Network/BaseParametersEventArgs.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using System.Collections.Generic; using System.Text.Json.Serialization; -using System; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/BeforeRequestSentEventArgs.cs b/dotnet/src/webdriver/BiDi/Network/BeforeRequestSentEventArgs.cs index 7524878c2141d..7833bc1cfd245 100644 --- a/dotnet/src/webdriver/BiDi/Network/BeforeRequestSentEventArgs.cs +++ b/dotnet/src/webdriver/BiDi/Network/BeforeRequestSentEventArgs.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.BrowsingContext; using System; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/ContinueRequestCommand.cs b/dotnet/src/webdriver/BiDi/Network/ContinueRequestCommand.cs index 812256f6e6977..1f0ec25323445 100644 --- a/dotnet/src/webdriver/BiDi/Network/ContinueRequestCommand.cs +++ b/dotnet/src/webdriver/BiDi/Network/ContinueRequestCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/ContinueResponseCommand.cs b/dotnet/src/webdriver/BiDi/Network/ContinueResponseCommand.cs index 082ccd3e8ceef..c0a9a8487adfb 100644 --- a/dotnet/src/webdriver/BiDi/Network/ContinueResponseCommand.cs +++ b/dotnet/src/webdriver/BiDi/Network/ContinueResponseCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/ContinueWithAuthCommand.cs b/dotnet/src/webdriver/BiDi/Network/ContinueWithAuthCommand.cs index cd919cd0d705a..1672fe3bcaca7 100644 --- a/dotnet/src/webdriver/BiDi/Network/ContinueWithAuthCommand.cs +++ b/dotnet/src/webdriver/BiDi/Network/ContinueWithAuthCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/Cookie.cs b/dotnet/src/webdriver/BiDi/Network/Cookie.cs index c3914d1bc8761..5cb3d80c62205 100644 --- a/dotnet/src/webdriver/BiDi/Network/Cookie.cs +++ b/dotnet/src/webdriver/BiDi/Network/Cookie.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/FetchErrorEventArgs.cs b/dotnet/src/webdriver/BiDi/Network/FetchErrorEventArgs.cs index 829d73aa45413..4809029c01ae8 100644 --- a/dotnet/src/webdriver/BiDi/Network/FetchErrorEventArgs.cs +++ b/dotnet/src/webdriver/BiDi/Network/FetchErrorEventArgs.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.BrowsingContext; using System; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/Initiator.cs b/dotnet/src/webdriver/BiDi/Network/Initiator.cs index 522ae62daf1fa..8501c00fd2b27 100644 --- a/dotnet/src/webdriver/BiDi/Network/Initiator.cs +++ b/dotnet/src/webdriver/BiDi/Network/Initiator.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/ProvideResponseCommand.cs b/dotnet/src/webdriver/BiDi/Network/ProvideResponseCommand.cs index 8c49f8ab4d1da..23d608ab19897 100644 --- a/dotnet/src/webdriver/BiDi/Network/ProvideResponseCommand.cs +++ b/dotnet/src/webdriver/BiDi/Network/ProvideResponseCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/Request.cs b/dotnet/src/webdriver/BiDi/Network/Request.cs index c3d97ace206ad..d47e2c664054c 100644 --- a/dotnet/src/webdriver/BiDi/Network/Request.cs +++ b/dotnet/src/webdriver/BiDi/Network/Request.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/ResponseCompletedEventArgs.cs b/dotnet/src/webdriver/BiDi/Network/ResponseCompletedEventArgs.cs index 3cd7ea5dad54e..5603e4bee9677 100644 --- a/dotnet/src/webdriver/BiDi/Network/ResponseCompletedEventArgs.cs +++ b/dotnet/src/webdriver/BiDi/Network/ResponseCompletedEventArgs.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.BrowsingContext; using System; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/ResponseStartedEventArgs.cs b/dotnet/src/webdriver/BiDi/Network/ResponseStartedEventArgs.cs index 71a3eeb573388..258e4d2294b32 100644 --- a/dotnet/src/webdriver/BiDi/Network/ResponseStartedEventArgs.cs +++ b/dotnet/src/webdriver/BiDi/Network/ResponseStartedEventArgs.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.BrowsingContext; using System; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Network/SetCacheBehaviorCommand.cs b/dotnet/src/webdriver/BiDi/Network/SetCacheBehaviorCommand.cs index 0a8b8b44a53e3..0d69007e523d4 100644 --- a/dotnet/src/webdriver/BiDi/Network/SetCacheBehaviorCommand.cs +++ b/dotnet/src/webdriver/BiDi/Network/SetCacheBehaviorCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/src/webdriver/BiDi/Script/AddPreloadScriptCommand.cs b/dotnet/src/webdriver/BiDi/Script/AddPreloadScriptCommand.cs index b741c2518cee9..2208fadb5306d 100644 --- a/dotnet/src/webdriver/BiDi/Script/AddPreloadScriptCommand.cs +++ b/dotnet/src/webdriver/BiDi/Script/AddPreloadScriptCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/CallFunctionCommand.cs b/dotnet/src/webdriver/BiDi/Script/CallFunctionCommand.cs index 1203ed39a6578..202c24d40b647 100644 --- a/dotnet/src/webdriver/BiDi/Script/CallFunctionCommand.cs +++ b/dotnet/src/webdriver/BiDi/Script/CallFunctionCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/Channel.cs b/dotnet/src/webdriver/BiDi/Script/Channel.cs index 9d1ca1f61b5cf..a0428f0f13b85 100644 --- a/dotnet/src/webdriver/BiDi/Script/Channel.cs +++ b/dotnet/src/webdriver/BiDi/Script/Channel.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/DisownCommand.cs b/dotnet/src/webdriver/BiDi/Script/DisownCommand.cs index f005c467bcb56..e2e7e92e3e6c4 100644 --- a/dotnet/src/webdriver/BiDi/Script/DisownCommand.cs +++ b/dotnet/src/webdriver/BiDi/Script/DisownCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/EvaluateCommand.cs b/dotnet/src/webdriver/BiDi/Script/EvaluateCommand.cs index 3396c240e5148..b464e1b98e02d 100644 --- a/dotnet/src/webdriver/BiDi/Script/EvaluateCommand.cs +++ b/dotnet/src/webdriver/BiDi/Script/EvaluateCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; using System; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/GetRealmsCommand.cs b/dotnet/src/webdriver/BiDi/Script/GetRealmsCommand.cs index d399b97527a9f..0f9793af5ddc6 100644 --- a/dotnet/src/webdriver/BiDi/Script/GetRealmsCommand.cs +++ b/dotnet/src/webdriver/BiDi/Script/GetRealmsCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/LocalValue.cs b/dotnet/src/webdriver/BiDi/Script/LocalValue.cs index e3af6cace2fb4..7c4e3ccbd37b4 100644 --- a/dotnet/src/webdriver/BiDi/Script/LocalValue.cs +++ b/dotnet/src/webdriver/BiDi/Script/LocalValue.cs @@ -87,19 +87,19 @@ public static LocalValue ConvertFrom(object? value) case { } when value.GetType().GetInterfaces() .Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(ISet<>)): - { - IEnumerable set = (IEnumerable)value; - - List setValues = []; + { + IEnumerable set = (IEnumerable)value; - foreach (var obj in set) - { - setValues.Add(ConvertFrom(obj)); - } + List setValues = []; - return new SetLocalValue(setValues); + foreach (var obj in set) + { + setValues.Add(ConvertFrom(obj)); } + return new SetLocalValue(setValues); + } + case IDictionary dictionary: return ConvertFrom(dictionary); diff --git a/dotnet/src/webdriver/BiDi/Script/RealmInfo.cs b/dotnet/src/webdriver/BiDi/Script/RealmInfo.cs index c22c7cb52be8f..3f8b333925e3c 100644 --- a/dotnet/src/webdriver/BiDi/Script/RealmInfo.cs +++ b/dotnet/src/webdriver/BiDi/Script/RealmInfo.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/RealmType.cs b/dotnet/src/webdriver/BiDi/Script/RealmType.cs index f415c00b5e560..6f93ff2f24178 100644 --- a/dotnet/src/webdriver/BiDi/Script/RealmType.cs +++ b/dotnet/src/webdriver/BiDi/Script/RealmType.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/RemoteValue.cs b/dotnet/src/webdriver/BiDi/Script/RemoteValue.cs index be58fcc6a2d77..a287b70a21175 100644 --- a/dotnet/src/webdriver/BiDi/Script/RemoteValue.cs +++ b/dotnet/src/webdriver/BiDi/Script/RemoteValue.cs @@ -17,13 +17,13 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; -using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; using System; using System.Collections.Generic; using System.Numerics; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; +using OpenQA.Selenium.BiDi.Communication.Json.Converters.Polymorphic; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/ResultOwnership.cs b/dotnet/src/webdriver/BiDi/Script/ResultOwnership.cs index 39bf31735f03d..9d6cdf0520338 100644 --- a/dotnet/src/webdriver/BiDi/Script/ResultOwnership.cs +++ b/dotnet/src/webdriver/BiDi/Script/ResultOwnership.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/ScriptModule.cs b/dotnet/src/webdriver/BiDi/Script/ScriptModule.cs index 6867941312362..6eb0c7cce6eca 100644 --- a/dotnet/src/webdriver/BiDi/Script/ScriptModule.cs +++ b/dotnet/src/webdriver/BiDi/Script/ScriptModule.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System; using System.Collections.Generic; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Script/SerializationOptions.cs b/dotnet/src/webdriver/BiDi/Script/SerializationOptions.cs index f34c602f799d8..25793b684e57f 100644 --- a/dotnet/src/webdriver/BiDi/Script/SerializationOptions.cs +++ b/dotnet/src/webdriver/BiDi/Script/SerializationOptions.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/src/webdriver/BiDi/Session/SessionModule.cs b/dotnet/src/webdriver/BiDi/Session/SessionModule.cs index b545d51f6d441..e6afd2ca9309f 100644 --- a/dotnet/src/webdriver/BiDi/Session/SessionModule.cs +++ b/dotnet/src/webdriver/BiDi/Session/SessionModule.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Session; diff --git a/dotnet/src/webdriver/BiDi/Session/SubscribeCommand.cs b/dotnet/src/webdriver/BiDi/Session/SubscribeCommand.cs index a4982b7427306..aefe4a3167015 100644 --- a/dotnet/src/webdriver/BiDi/Session/SubscribeCommand.cs +++ b/dotnet/src/webdriver/BiDi/Session/SubscribeCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Session; diff --git a/dotnet/src/webdriver/BiDi/Session/Subscription.cs b/dotnet/src/webdriver/BiDi/Session/Subscription.cs index 7f9899581f556..551e9a7f2d043 100644 --- a/dotnet/src/webdriver/BiDi/Session/Subscription.cs +++ b/dotnet/src/webdriver/BiDi/Session/Subscription.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Session; diff --git a/dotnet/src/webdriver/BiDi/Session/UnsubscribeCommand.cs b/dotnet/src/webdriver/BiDi/Session/UnsubscribeCommand.cs index 2978260b266f8..bf65b059c4bf1 100644 --- a/dotnet/src/webdriver/BiDi/Session/UnsubscribeCommand.cs +++ b/dotnet/src/webdriver/BiDi/Session/UnsubscribeCommand.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Collections.Generic; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Session; diff --git a/dotnet/src/webdriver/BiDi/Session/UserPromptHandler.cs b/dotnet/src/webdriver/BiDi/Session/UserPromptHandler.cs index c4b051e4c30f4..4bf7008fd59e7 100644 --- a/dotnet/src/webdriver/BiDi/Session/UserPromptHandler.cs +++ b/dotnet/src/webdriver/BiDi/Session/UserPromptHandler.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Session; diff --git a/dotnet/src/webdriver/BiDi/Storage/GetCookiesCommand.cs b/dotnet/src/webdriver/BiDi/Storage/GetCookiesCommand.cs index e8337e784de86..84fa0597bad2d 100644 --- a/dotnet/src/webdriver/BiDi/Storage/GetCookiesCommand.cs +++ b/dotnet/src/webdriver/BiDi/Storage/GetCookiesCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System; using System.Collections.Generic; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Storage; diff --git a/dotnet/src/webdriver/BiDi/Storage/SetCookieCommand.cs b/dotnet/src/webdriver/BiDi/Storage/SetCookieCommand.cs index 635faa93e381a..52ff443da86e8 100644 --- a/dotnet/src/webdriver/BiDi/Storage/SetCookieCommand.cs +++ b/dotnet/src/webdriver/BiDi/Storage/SetCookieCommand.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; -using OpenQA.Selenium.BiDi.Communication.Json.Converters; using System; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; +using OpenQA.Selenium.BiDi.Communication.Json.Converters; namespace OpenQA.Selenium.BiDi.Storage; diff --git a/dotnet/src/webdriver/BiDi/Storage/StorageModule.cs b/dotnet/src/webdriver/BiDi/Storage/StorageModule.cs index 3e71db576c760..6ae7455e86f34 100644 --- a/dotnet/src/webdriver/BiDi/Storage/StorageModule.cs +++ b/dotnet/src/webdriver/BiDi/Storage/StorageModule.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.Storage; diff --git a/dotnet/src/webdriver/BiDi/Subscription.cs b/dotnet/src/webdriver/BiDi/Subscription.cs index 2e9583833a8eb..5c554cfe6047a 100644 --- a/dotnet/src/webdriver/BiDi/Subscription.cs +++ b/dotnet/src/webdriver/BiDi/Subscription.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System; using System.Collections.Generic; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi; diff --git a/dotnet/src/webdriver/BiDi/WebExtension/InstallCommand.cs b/dotnet/src/webdriver/BiDi/WebExtension/InstallCommand.cs index 8027787d72eec..afec1df6ab28e 100644 --- a/dotnet/src/webdriver/BiDi/WebExtension/InstallCommand.cs +++ b/dotnet/src/webdriver/BiDi/WebExtension/InstallCommand.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System; using System.Text.Json.Serialization; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.WebExtension; diff --git a/dotnet/src/webdriver/BiDi/WebExtension/WebExtensionModule.cs b/dotnet/src/webdriver/BiDi/WebExtension/WebExtensionModule.cs index 8432ccc36bd01..30b215a069daa 100644 --- a/dotnet/src/webdriver/BiDi/WebExtension/WebExtensionModule.cs +++ b/dotnet/src/webdriver/BiDi/WebExtension/WebExtensionModule.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.BiDi.Communication; using System.Threading.Tasks; +using OpenQA.Selenium.BiDi.Communication; namespace OpenQA.Selenium.BiDi.WebExtension; diff --git a/dotnet/src/webdriver/By.cs b/dotnet/src/webdriver/By.cs index b280d54589493..f686daedaa086 100644 --- a/dotnet/src/webdriver/By.cs +++ b/dotnet/src/webdriver/By.cs @@ -17,12 +17,12 @@ // 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 419fb8bb70cc3..522d15da4dfbe 100644 --- a/dotnet/src/webdriver/Chrome/ChromeDriver.cs +++ b/dotnet/src/webdriver/Chrome/ChromeDriver.cs @@ -17,11 +17,11 @@ // 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.Chrome; diff --git a/dotnet/src/webdriver/Chrome/ChromeDriverService.cs b/dotnet/src/webdriver/Chrome/ChromeDriverService.cs index 4b701ceed1598..00ed5322afe24 100644 --- a/dotnet/src/webdriver/Chrome/ChromeDriverService.cs +++ b/dotnet/src/webdriver/Chrome/ChromeDriverService.cs @@ -17,9 +17,9 @@ // under the License. // +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 85b0c287e8b82..ffd879125538e 100644 --- a/dotnet/src/webdriver/Chrome/ChromeOptions.cs +++ b/dotnet/src/webdriver/Chrome/ChromeOptions.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.Chromium; using System; using System.Globalization; +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 ac9b73c04d899..c9d04556c80d4 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriver.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriver.cs @@ -17,14 +17,14 @@ // under the License. // -using OpenQA.Selenium.DevTools; -using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; 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/ChromiumDriverLogLevel.cs b/dotnet/src/webdriver/Chromium/ChromiumDriverLogLevel.cs index 4e87858b065f3..96f771cea8d58 100644 --- a/dotnet/src/webdriver/Chromium/ChromiumDriverLogLevel.cs +++ b/dotnet/src/webdriver/Chromium/ChromiumDriverLogLevel.cs @@ -42,7 +42,7 @@ public enum ChromiumDriverLogLevel /// /// Represents the Warning value /// - Warning , + Warning, /// /// Represents the Severe value diff --git a/dotnet/src/webdriver/Command.cs b/dotnet/src/webdriver/Command.cs index b7acb42ef2dbf..8825c9d1d45c6 100644 --- a/dotnet/src/webdriver/Command.cs +++ b/dotnet/src/webdriver/Command.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using System.Text.Json.Serialization.Metadata; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/Cookie.cs b/dotnet/src/webdriver/Cookie.cs index 292757bf7652f..132d93aabe99d 100644 --- a/dotnet/src/webdriver/Cookie.cs +++ b/dotnet/src/webdriver/Cookie.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Globalization; using System.Linq; using System.Text.Json.Serialization; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/DevTools/DevToolsSession.cs b/dotnet/src/webdriver/DevTools/DevToolsSession.cs index 1f3b3e31b1d6b..044e6f09700b6 100644 --- a/dotnet/src/webdriver/DevTools/DevToolsSession.cs +++ b/dotnet/src/webdriver/DevTools/DevToolsSession.cs @@ -17,7 +17,6 @@ // under the License. // -using OpenQA.Selenium.Internal.Logging; using System; using System.Collections.Concurrent; using System.Diagnostics.CodeAnalysis; @@ -27,6 +26,7 @@ using System.Text.Json.Nodes; using System.Threading; using System.Threading.Tasks; +using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.DevTools; diff --git a/dotnet/src/webdriver/DevTools/v138/V138JavaScript.cs b/dotnet/src/webdriver/DevTools/v138/V138JavaScript.cs index 56c600d531a99..c6477e0912885 100644 --- a/dotnet/src/webdriver/DevTools/v138/V138JavaScript.cs +++ b/dotnet/src/webdriver/DevTools/v138/V138JavaScript.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.DevTools.V138.Page; -using OpenQA.Selenium.DevTools.V138.Runtime; using System; using System.Collections.Generic; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V138.Page; +using OpenQA.Selenium.DevTools.V138.Runtime; namespace OpenQA.Selenium.DevTools.V138; diff --git a/dotnet/src/webdriver/DevTools/v138/V138Log.cs b/dotnet/src/webdriver/DevTools/v138/V138Log.cs index 0c2cd7fbd1332..717fba4c0583d 100644 --- a/dotnet/src/webdriver/DevTools/v138/V138Log.cs +++ b/dotnet/src/webdriver/DevTools/v138/V138Log.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.DevTools.V138.Log; using System; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V138.Log; namespace OpenQA.Selenium.DevTools.V138; diff --git a/dotnet/src/webdriver/DevTools/v138/V138Network.cs b/dotnet/src/webdriver/DevTools/v138/V138Network.cs index 4c6dc50976b81..548415f5627ae 100644 --- a/dotnet/src/webdriver/DevTools/v138/V138Network.cs +++ b/dotnet/src/webdriver/DevTools/v138/V138Network.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.DevTools.V138.Fetch; -using OpenQA.Selenium.DevTools.V138.Network; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V138.Fetch; +using OpenQA.Selenium.DevTools.V138.Network; namespace OpenQA.Selenium.DevTools.V138; diff --git a/dotnet/src/webdriver/DevTools/v138/V138Target.cs b/dotnet/src/webdriver/DevTools/v138/V138Target.cs index 3b5d79b8352bf..ad001b1c0d245 100644 --- a/dotnet/src/webdriver/DevTools/v138/V138Target.cs +++ b/dotnet/src/webdriver/DevTools/v138/V138Target.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.DevTools.V138.Target; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V138.Target; namespace OpenQA.Selenium.DevTools.V138; diff --git a/dotnet/src/webdriver/DevTools/v139/V139JavaScript.cs b/dotnet/src/webdriver/DevTools/v139/V139JavaScript.cs index f8c49ff4059f6..623d15b00597e 100644 --- a/dotnet/src/webdriver/DevTools/v139/V139JavaScript.cs +++ b/dotnet/src/webdriver/DevTools/v139/V139JavaScript.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.DevTools.V139.Page; -using OpenQA.Selenium.DevTools.V139.Runtime; using System; using System.Collections.Generic; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V139.Page; +using OpenQA.Selenium.DevTools.V139.Runtime; namespace OpenQA.Selenium.DevTools.V139; diff --git a/dotnet/src/webdriver/DevTools/v139/V139Log.cs b/dotnet/src/webdriver/DevTools/v139/V139Log.cs index 0bc749aa194f2..3f5d47793ec2b 100644 --- a/dotnet/src/webdriver/DevTools/v139/V139Log.cs +++ b/dotnet/src/webdriver/DevTools/v139/V139Log.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.DevTools.V139.Log; using System; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V139.Log; namespace OpenQA.Selenium.DevTools.V139; diff --git a/dotnet/src/webdriver/DevTools/v139/V139Network.cs b/dotnet/src/webdriver/DevTools/v139/V139Network.cs index 76251ffc92c0c..e6158336bbf17 100644 --- a/dotnet/src/webdriver/DevTools/v139/V139Network.cs +++ b/dotnet/src/webdriver/DevTools/v139/V139Network.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.DevTools.V139.Fetch; -using OpenQA.Selenium.DevTools.V139.Network; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V139.Fetch; +using OpenQA.Selenium.DevTools.V139.Network; namespace OpenQA.Selenium.DevTools.V139; diff --git a/dotnet/src/webdriver/DevTools/v139/V139Target.cs b/dotnet/src/webdriver/DevTools/v139/V139Target.cs index 1aaefa9f3b3cd..ab71ea0629610 100644 --- a/dotnet/src/webdriver/DevTools/v139/V139Target.cs +++ b/dotnet/src/webdriver/DevTools/v139/V139Target.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.DevTools.V139.Target; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V139.Target; namespace OpenQA.Selenium.DevTools.V139; diff --git a/dotnet/src/webdriver/DevTools/v140/V140JavaScript.cs b/dotnet/src/webdriver/DevTools/v140/V140JavaScript.cs index decd04cca1779..277721c075b69 100644 --- a/dotnet/src/webdriver/DevTools/v140/V140JavaScript.cs +++ b/dotnet/src/webdriver/DevTools/v140/V140JavaScript.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.DevTools.V140.Page; -using OpenQA.Selenium.DevTools.V140.Runtime; using System; using System.Collections.Generic; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V140.Page; +using OpenQA.Selenium.DevTools.V140.Runtime; namespace OpenQA.Selenium.DevTools.V140; diff --git a/dotnet/src/webdriver/DevTools/v140/V140Log.cs b/dotnet/src/webdriver/DevTools/v140/V140Log.cs index 7004571f89201..b4e3ddffdc114 100644 --- a/dotnet/src/webdriver/DevTools/v140/V140Log.cs +++ b/dotnet/src/webdriver/DevTools/v140/V140Log.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.DevTools.V140.Log; using System; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V140.Log; namespace OpenQA.Selenium.DevTools.V140; diff --git a/dotnet/src/webdriver/DevTools/v140/V140Network.cs b/dotnet/src/webdriver/DevTools/v140/V140Network.cs index a40d432fcce35..c93de7d7c61ac 100644 --- a/dotnet/src/webdriver/DevTools/v140/V140Network.cs +++ b/dotnet/src/webdriver/DevTools/v140/V140Network.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.DevTools.V140.Fetch; -using OpenQA.Selenium.DevTools.V140.Network; using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V140.Fetch; +using OpenQA.Selenium.DevTools.V140.Network; namespace OpenQA.Selenium.DevTools.V140; diff --git a/dotnet/src/webdriver/DevTools/v140/V140Target.cs b/dotnet/src/webdriver/DevTools/v140/V140Target.cs index 1ec7b6b0e715a..8321aa9449e2f 100644 --- a/dotnet/src/webdriver/DevTools/v140/V140Target.cs +++ b/dotnet/src/webdriver/DevTools/v140/V140Target.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.DevTools.V140.Target; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools.V140.Target; namespace OpenQA.Selenium.DevTools.V140; diff --git a/dotnet/src/webdriver/DriverOptions.cs b/dotnet/src/webdriver/DriverOptions.cs index 483ceb03130a4..bb50ef3ecf384 100644 --- a/dotnet/src/webdriver/DriverOptions.cs +++ b/dotnet/src/webdriver/DriverOptions.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Globalization; +using OpenQA.Selenium.Internal; +using OpenQA.Selenium.Remote; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/DriverService.cs b/dotnet/src/webdriver/DriverService.cs index c327caa0dac43..df0056a525ca9 100644 --- a/dotnet/src/webdriver/DriverService.cs +++ b/dotnet/src/webdriver/DriverService.cs @@ -17,7 +17,6 @@ // under the License. // -using OpenQA.Selenium.Remote; using System; using System.Diagnostics; using System.Diagnostics.CodeAnalysis; @@ -27,6 +26,7 @@ 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 240648306ec77..8bfc339e5bcac 100644 --- a/dotnet/src/webdriver/Edge/EdgeDriver.cs +++ b/dotnet/src/webdriver/Edge/EdgeDriver.cs @@ -17,11 +17,11 @@ // 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 1619d8b499239..4619f6b72da99 100644 --- a/dotnet/src/webdriver/Edge/EdgeDriverService.cs +++ b/dotnet/src/webdriver/Edge/EdgeDriverService.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.Chromium; -using OpenQA.Selenium.Internal; using System; using System.IO; +using OpenQA.Selenium.Chromium; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Edge; diff --git a/dotnet/src/webdriver/Edge/EdgeOptions.cs b/dotnet/src/webdriver/Edge/EdgeOptions.cs index 571706b87ab84..d1ee36b5b2c16 100644 --- a/dotnet/src/webdriver/Edge/EdgeOptions.cs +++ b/dotnet/src/webdriver/Edge/EdgeOptions.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.Chromium; using System; 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 a134728401330..2fa62abe63523 100644 --- a/dotnet/src/webdriver/ElementCoordinates.cs +++ b/dotnet/src/webdriver/ElementCoordinates.cs @@ -17,9 +17,9 @@ // under the License. // +using System; 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 9a7ddd1a7607d..8dfcf3a6d9800 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxAndroidOptions.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxAndroidOptions.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Firefox; diff --git a/dotnet/src/webdriver/Firefox/FirefoxDriver.cs b/dotnet/src/webdriver/Firefox/FirefoxDriver.cs index 7bef00b3f3a53..1669ba988b7e2 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxDriver.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxDriver.cs @@ -17,13 +17,13 @@ // under the License. // -using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Globalization; using System.IO; using System.IO.Compression; +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 4d9a8bb67f1cb..17fa2ab496aca 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxDriverService.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxDriverService.cs @@ -17,12 +17,12 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Diagnostics; 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 8c23fcd07c6dd..eee3985335d2a 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxExtension.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxExtension.cs @@ -17,13 +17,13 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Globalization; using System.IO; using System.IO.Compression; using System.Text.Json.Nodes; using System.Xml; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Firefox; diff --git a/dotnet/src/webdriver/Firefox/FirefoxProfile.cs b/dotnet/src/webdriver/Firefox/FirefoxProfile.cs index ad25a78b0727a..59e1a9a0c0088 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxProfile.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxProfile.cs @@ -17,13 +17,13 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.IO; using System.IO.Compression; using System.Text.Json; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Firefox; diff --git a/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs b/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs index b01264d1a8bdd..789420eea3afc 100644 --- a/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs +++ b/dotnet/src/webdriver/Firefox/FirefoxProfileManager.cs @@ -17,11 +17,11 @@ // 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/IActionExecutor.cs b/dotnet/src/webdriver/IActionExecutor.cs index 88442a976d4a0..575d3d50e2510 100644 --- a/dotnet/src/webdriver/IActionExecutor.cs +++ b/dotnet/src/webdriver/IActionExecutor.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.Interactions; using System; using System.Collections.Generic; +using OpenQA.Selenium.Interactions; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/IE/InternetExplorerDriver.cs b/dotnet/src/webdriver/IE/InternetExplorerDriver.cs index 8ead0709b7db9..82525e60c537d 100644 --- a/dotnet/src/webdriver/IE/InternetExplorerDriver.cs +++ b/dotnet/src/webdriver/IE/InternetExplorerDriver.cs @@ -17,9 +17,9 @@ // 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 39240d9f31d2e..8e3e0bb0078fe 100644 --- a/dotnet/src/webdriver/IE/InternetExplorerDriverService.cs +++ b/dotnet/src/webdriver/IE/InternetExplorerDriverService.cs @@ -17,10 +17,10 @@ // under the License. // -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/ILocatable.cs b/dotnet/src/webdriver/ILocatable.cs index 16597199281a4..44c8399d34aeb 100644 --- a/dotnet/src/webdriver/ILocatable.cs +++ b/dotnet/src/webdriver/ILocatable.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.Interactions.Internal; using System.Drawing; +using OpenQA.Selenium.Interactions.Internal; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/ITargetLocator.cs b/dotnet/src/webdriver/ITargetLocator.cs index cb787cabc2f2a..6031107c493d9 100644 --- a/dotnet/src/webdriver/ITargetLocator.cs +++ b/dotnet/src/webdriver/ITargetLocator.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/Interactions/PointerInputDevice.cs b/dotnet/src/webdriver/Interactions/PointerInputDevice.cs index 62a846ffa80ab..f1cee74f8ba0c 100644 --- a/dotnet/src/webdriver/Interactions/PointerInputDevice.cs +++ b/dotnet/src/webdriver/Interactions/PointerInputDevice.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Globalization; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/src/webdriver/Interactions/WheelInputDevice.cs b/dotnet/src/webdriver/Interactions/WheelInputDevice.cs index 7a30103774fae..0803598fa4a03 100644 --- a/dotnet/src/webdriver/Interactions/WheelInputDevice.cs +++ b/dotnet/src/webdriver/Interactions/WheelInputDevice.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/src/webdriver/Internal/Base64UrlEncoder.cs b/dotnet/src/webdriver/Internal/Base64UrlEncoder.cs index 6d294e05827ed..46fa9d0c8d003 100644 --- a/dotnet/src/webdriver/Internal/Base64UrlEncoder.cs +++ b/dotnet/src/webdriver/Internal/Base64UrlEncoder.cs @@ -93,28 +93,28 @@ public static string Encode(byte[] inArray) switch (lengthmod3) { case 2: - { - byte d0 = inArray[i]; - byte d1 = inArray[i + 1]; - - output[j + 0] = table[d0 >> 2]; - output[j + 1] = table[((d0 & 0x03) << 4) | (d1 >> 4)]; - output[j + 2] = table[(d1 & 0x0f) << 2]; - j += 3; - } - break; + { + byte d0 = inArray[i]; + byte d1 = inArray[i + 1]; + + output[j + 0] = table[d0 >> 2]; + output[j + 1] = table[((d0 & 0x03) << 4) | (d1 >> 4)]; + output[j + 2] = table[(d1 & 0x0f) << 2]; + j += 3; + } + break; case 1: - { - byte d0 = inArray[i]; + { + byte d0 = inArray[i]; - output[j + 0] = table[d0 >> 2]; - output[j + 1] = table[(d0 & 0x03) << 4]; - j += 2; - } - break; + output[j + 0] = table[d0 >> 2]; + output[j + 1] = table[(d0 & 0x03) << 4]; + j += 2; + } + break; - //default or case 0: no further operations are needed. + //default or case 0: no further operations are needed. } return new string(output, 0, j); diff --git a/dotnet/src/webdriver/Internal/FileUtilities.cs b/dotnet/src/webdriver/Internal/FileUtilities.cs index 1603cdbde8ea5..8c98511134019 100644 --- a/dotnet/src/webdriver/Internal/FileUtilities.cs +++ b/dotnet/src/webdriver/Internal/FileUtilities.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.Internal.Logging; using System; using System.Globalization; using System.IO; using System.Reflection; +using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.Internal; diff --git a/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs b/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs index a5860a490bf24..05986ef7f27d6 100644 --- a/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs +++ b/dotnet/src/webdriver/Internal/ResponseValueJsonConverter.cs @@ -75,31 +75,31 @@ public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOp switch (reader.TokenType) { case JsonTokenType.StartObject: + { + Dictionary dictionaryValue = []; + while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) { - Dictionary dictionaryValue = []; - while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) - { - string elementKey = reader.GetString()!; - reader.Read(); - dictionaryValue.Add(elementKey, ProcessReadToken(ref reader, options)); - } - - processedObject = dictionaryValue; - break; + string elementKey = reader.GetString()!; + reader.Read(); + dictionaryValue.Add(elementKey, ProcessReadToken(ref reader, options)); } + processedObject = dictionaryValue; + break; + } + case JsonTokenType.StartArray: + { + List arrayValue = []; + while (reader.Read() && reader.TokenType != JsonTokenType.EndArray) { - List arrayValue = []; - while (reader.Read() && reader.TokenType != JsonTokenType.EndArray) - { - arrayValue.Add(ProcessReadToken(ref reader, options)); - } - - processedObject = arrayValue.ToArray(); - break; + arrayValue.Add(ProcessReadToken(ref reader, options)); } + processedObject = arrayValue.ToArray(); + break; + } + case JsonTokenType.Null: processedObject = null; break; @@ -113,22 +113,22 @@ public override void Write(Utf8JsonWriter writer, object value, JsonSerializerOp processedObject = reader.GetString(); break; case JsonTokenType.Number: + { + if (reader.TryGetInt64(out long longValue)) { - if (reader.TryGetInt64(out long longValue)) - { - processedObject = longValue; - } - else if (reader.TryGetDouble(out double doubleValue)) - { - processedObject = doubleValue; - } - else - { - throw new JsonException($"Unrecognized '{JsonElement.ParseValue(ref reader)}' token as a number value."); - } - - break; + processedObject = longValue; } + else if (reader.TryGetDouble(out double doubleValue)) + { + processedObject = doubleValue; + } + else + { + throw new JsonException($"Unrecognized '{JsonElement.ParseValue(ref reader)}' token as a number value."); + } + + break; + } default: throw new JsonException($"Unrecognized '{reader.TokenType}' token type while parsing command response."); diff --git a/dotnet/src/webdriver/JavaScriptEngine.cs b/dotnet/src/webdriver/JavaScriptEngine.cs index 3465c46b98cbb..c9c51614fec74 100644 --- a/dotnet/src/webdriver/JavaScriptEngine.cs +++ b/dotnet/src/webdriver/JavaScriptEngine.cs @@ -17,8 +17,6 @@ // under the License. // -using OpenQA.Selenium.DevTools; -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; @@ -27,6 +25,8 @@ using System.Linq; using System.Text.Json; using System.Threading.Tasks; +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 26f84db946d24..1b86e6fc17b53 100644 --- a/dotnet/src/webdriver/NetworkManager.cs +++ b/dotnet/src/webdriver/NetworkManager.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.DevTools; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; +using OpenQA.Selenium.DevTools; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/RelativeBy.cs b/dotnet/src/webdriver/RelativeBy.cs index 2823b1c6a7f71..cf0e137c9fb77 100644 --- a/dotnet/src/webdriver/RelativeBy.cs +++ b/dotnet/src/webdriver/RelativeBy.cs @@ -17,12 +17,12 @@ // 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 e8990d39028c0..ff5d05098663b 100644 --- a/dotnet/src/webdriver/Remote/DesiredCapabilities.cs +++ b/dotnet/src/webdriver/Remote/DesiredCapabilities.cs @@ -17,11 +17,11 @@ // 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 13b50064436eb..db54b2b2b8ff5 100644 --- a/dotnet/src/webdriver/Remote/HttpCommandExecutor.cs +++ b/dotnet/src/webdriver/Remote/HttpCommandExecutor.cs @@ -17,8 +17,6 @@ // under the License. // -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.Internal.Logging; using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; @@ -30,6 +28,8 @@ using System.Text; using System.Threading; 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 40db2fb515b83..d9345f7e71cfd 100644 --- a/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs +++ b/dotnet/src/webdriver/Remote/ReadOnlyDesiredCapabilities.cs @@ -17,11 +17,11 @@ // 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 ddb5f84c0373f..eea33afa149bf 100644 --- a/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs +++ b/dotnet/src/webdriver/Remote/RemoteSessionSettings.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.Remote; using System; using System.Collections.Generic; using System.Globalization; +using OpenQA.Selenium.Remote; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/Remote/RemoteWebDriver.cs b/dotnet/src/webdriver/Remote/RemoteWebDriver.cs index a71f985af1aa7..432a1bae98db0 100644 --- a/dotnet/src/webdriver/Remote/RemoteWebDriver.cs +++ b/dotnet/src/webdriver/Remote/RemoteWebDriver.cs @@ -17,16 +17,16 @@ // under the License. // -using OpenQA.Selenium.Internal.Logging; -using OpenQA.Selenium.DevTools; using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.Diagnostics.CodeAnalysis; using System.IO; using System.IO.Compression; using System.Linq; using System.Threading.Tasks; -using System.Diagnostics.CodeAnalysis; +using OpenQA.Selenium.DevTools; +using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/src/webdriver/Response.cs b/dotnet/src/webdriver/Response.cs index e1967421c0d2d..06b0e45ae9573 100644 --- a/dotnet/src/webdriver/Response.cs +++ b/dotnet/src/webdriver/Response.cs @@ -17,13 +17,13 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Text.Json; using System.Text.Json.Nodes; using System.Text.Json.Serialization; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/Safari/SafariDriver.cs b/dotnet/src/webdriver/Safari/SafariDriver.cs index 8b84b657072f9..73b2b3c625292 100644 --- a/dotnet/src/webdriver/Safari/SafariDriver.cs +++ b/dotnet/src/webdriver/Safari/SafariDriver.cs @@ -17,10 +17,10 @@ // 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 43f776648730e..f2f1f6a4d7cf0 100644 --- a/dotnet/src/webdriver/Safari/SafariDriverService.cs +++ b/dotnet/src/webdriver/Safari/SafariDriverService.cs @@ -17,10 +17,10 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.IO; using System.Text; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Safari; diff --git a/dotnet/src/webdriver/SeleniumManager.cs b/dotnet/src/webdriver/SeleniumManager.cs index ac8855449726c..35873cb30e0f7 100644 --- a/dotnet/src/webdriver/SeleniumManager.cs +++ b/dotnet/src/webdriver/SeleniumManager.cs @@ -17,7 +17,6 @@ // under the License. // -using OpenQA.Selenium.Internal.Logging; using System; using System.Collections.Generic; using System.Diagnostics; @@ -27,6 +26,7 @@ using System.Text; using System.Text.Json; using System.Text.Json.Serialization; +using OpenQA.Selenium.Internal.Logging; using static OpenQA.Selenium.SeleniumManagerResponse; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/ShadowRoot.cs b/dotnet/src/webdriver/ShadowRoot.cs index b40b3576fe659..170463264fe8e 100644 --- a/dotnet/src/webdriver/ShadowRoot.cs +++ b/dotnet/src/webdriver/ShadowRoot.cs @@ -17,11 +17,11 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics.CodeAnalysis; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium; diff --git a/dotnet/src/webdriver/TargetLocator.cs b/dotnet/src/webdriver/TargetLocator.cs index 263dca0fe19a7..5b8bdfe70f661 100644 --- a/dotnet/src/webdriver/TargetLocator.cs +++ b/dotnet/src/webdriver/TargetLocator.cs @@ -17,11 +17,11 @@ // 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/VirtualAuth/Credential.cs b/dotnet/src/webdriver/VirtualAuth/Credential.cs index 71c5f8719e555..80486c09bfba0 100644 --- a/dotnet/src/webdriver/VirtualAuth/Credential.cs +++ b/dotnet/src/webdriver/VirtualAuth/Credential.cs @@ -17,9 +17,9 @@ // under the License. // -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.VirtualAuth; diff --git a/dotnet/src/webdriver/WebDriver.cs b/dotnet/src/webdriver/WebDriver.cs index 77f82461053d7..02697c601e625 100644 --- a/dotnet/src/webdriver/WebDriver.cs +++ b/dotnet/src/webdriver/WebDriver.cs @@ -17,9 +17,6 @@ // under the License. // -using OpenQA.Selenium.Interactions; -using OpenQA.Selenium.Internal; -using OpenQA.Selenium.VirtualAuth; using System; using System.Collections; using System.Collections.Generic; @@ -27,6 +24,9 @@ using System.Diagnostics.CodeAnalysis; using System.Globalization; using System.Threading.Tasks; +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 4dba6ae8837f4..c9b4e05b0506b 100644 --- a/dotnet/src/webdriver/WebElement.cs +++ b/dotnet/src/webdriver/WebElement.cs @@ -17,8 +17,6 @@ // under the License. // -using OpenQA.Selenium.Interactions.Internal; -using OpenQA.Selenium.Internal; using System; using System.Collections.Generic; using System.Collections.ObjectModel; @@ -27,6 +25,8 @@ 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/test/chrome/ChromeSpecificTests.cs b/dotnet/test/chrome/ChromeSpecificTests.cs index 521c5b42b43e5..beaf1f61fff70 100644 --- a/dotnet/test/chrome/ChromeSpecificTests.cs +++ b/dotnet/test/chrome/ChromeSpecificTests.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium.Chrome; diff --git a/dotnet/test/common/AlertsTest.cs b/dotnet/test/common/AlertsTest.cs index 7bf5985d01a37..8a7644619e6c8 100644 --- a/dotnet/test/common/AlertsTest.cs +++ b/dotnet/test/common/AlertsTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/AssemblyFixture.cs b/dotnet/test/common/AssemblyFixture.cs index d8605f5f4203e..60904a3a5cfc5 100644 --- a/dotnet/test/common/AssemblyFixture.cs +++ b/dotnet/test/common/AssemblyFixture.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/BiDi/BiDiFixture.cs b/dotnet/test/common/BiDi/BiDiFixture.cs index 88fe223a71d1c..8113872a0c3cd 100644 --- a/dotnet/test/common/BiDi/BiDiFixture.cs +++ b/dotnet/test/common/BiDi/BiDiFixture.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium.BiDi; diff --git a/dotnet/test/common/BiDi/Browser/BrowserTest.cs b/dotnet/test/common/BiDi/Browser/BrowserTest.cs index 39c4686b60124..c0733f26b066d 100644 --- a/dotnet/test/common/BiDi/Browser/BrowserTest.cs +++ b/dotnet/test/common/BiDi/Browser/BrowserTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System.Linq; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Browser; diff --git a/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextEventsTest.cs b/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextEventsTest.cs index 503fcaee56431..822be49535817 100644 --- a/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextEventsTest.cs +++ b/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextEventsTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextTest.cs b/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextTest.cs index a1a8cda5924b8..589eeb90c6396 100644 --- a/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextTest.cs +++ b/dotnet/test/common/BiDi/BrowsingContext/BrowsingContextTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System.Linq; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.BrowsingContext; diff --git a/dotnet/test/common/BiDi/Input/CombinedInputActionsTest.cs b/dotnet/test/common/BiDi/Input/CombinedInputActionsTest.cs index 84367fc1d7983..4f14fda2731b6 100644 --- a/dotnet/test/common/BiDi/Input/CombinedInputActionsTest.cs +++ b/dotnet/test/common/BiDi/Input/CombinedInputActionsTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.BiDi.BrowsingContext; -using System.Threading.Tasks; namespace OpenQA.Selenium.BiDi.Input; diff --git a/dotnet/test/common/BiDi/Input/SetFilesTest.cs b/dotnet/test/common/BiDi/Input/SetFilesTest.cs index 1f58ecbd408a4..01639faf25cb8 100644 --- a/dotnet/test/common/BiDi/Input/SetFilesTest.cs +++ b/dotnet/test/common/BiDi/Input/SetFilesTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.BiDi.BrowsingContext; using System.IO; using System.Threading.Tasks; +using NUnit.Framework; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Input; diff --git a/dotnet/test/common/BiDi/Log/LogTest.cs b/dotnet/test/common/BiDi/Log/LogTest.cs index d9ec07c268b2c..e2b6b4ac6902b 100644 --- a/dotnet/test/common/BiDi/Log/LogTest.cs +++ b/dotnet/test/common/BiDi/Log/LogTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Log; diff --git a/dotnet/test/common/BiDi/Network/NetworkEventsTest.cs b/dotnet/test/common/BiDi/Network/NetworkEventsTest.cs index 5a8cb5ce609ce..80f1965f80540 100644 --- a/dotnet/test/common/BiDi/Network/NetworkEventsTest.cs +++ b/dotnet/test/common/BiDi/Network/NetworkEventsTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.BiDi.BrowsingContext; using System; using System.Threading.Tasks; +using NUnit.Framework; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/test/common/BiDi/Network/NetworkTest.cs b/dotnet/test/common/BiDi/Network/NetworkTest.cs index 577e79a419515..f090abc588cbb 100644 --- a/dotnet/test/common/BiDi/Network/NetworkTest.cs +++ b/dotnet/test/common/BiDi/Network/NetworkTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.BiDi.BrowsingContext; using System; using System.Threading.Tasks; +using NUnit.Framework; +using OpenQA.Selenium.BiDi.BrowsingContext; namespace OpenQA.Selenium.BiDi.Network; diff --git a/dotnet/test/common/BiDi/Script/CallFunctionLocalValueTest.cs b/dotnet/test/common/BiDi/Script/CallFunctionLocalValueTest.cs index 6a75d595c5034..a3c6a02ca05cc 100644 --- a/dotnet/test/common/BiDi/Script/CallFunctionLocalValueTest.cs +++ b/dotnet/test/common/BiDi/Script/CallFunctionLocalValueTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/test/common/BiDi/Script/CallFunctionParameterTest.cs b/dotnet/test/common/BiDi/Script/CallFunctionParameterTest.cs index a2a4c3e5b4da4..4dc86b40c8a53 100644 --- a/dotnet/test/common/BiDi/Script/CallFunctionParameterTest.cs +++ b/dotnet/test/common/BiDi/Script/CallFunctionParameterTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/test/common/BiDi/Script/CallFunctionRemoteValueTest.cs b/dotnet/test/common/BiDi/Script/CallFunctionRemoteValueTest.cs index bbfb14ac1d155..265f2efb1607d 100644 --- a/dotnet/test/common/BiDi/Script/CallFunctionRemoteValueTest.cs +++ b/dotnet/test/common/BiDi/Script/CallFunctionRemoteValueTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/test/common/BiDi/Script/EvaluateParametersTest.cs b/dotnet/test/common/BiDi/Script/EvaluateParametersTest.cs index 060f4a0e1a77a..1547073a0df31 100644 --- a/dotnet/test/common/BiDi/Script/EvaluateParametersTest.cs +++ b/dotnet/test/common/BiDi/Script/EvaluateParametersTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/test/common/BiDi/Script/LocalValueConversionTests.cs b/dotnet/test/common/BiDi/Script/LocalValueConversionTests.cs index 7a19a3c239129..b8a4cb4d364b5 100644 --- a/dotnet/test/common/BiDi/Script/LocalValueConversionTests.cs +++ b/dotnet/test/common/BiDi/Script/LocalValueConversionTests.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Linq; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/test/common/BiDi/Script/ScriptCommandsTest.cs b/dotnet/test/common/BiDi/Script/ScriptCommandsTest.cs index e21b1748681c5..e7a80b824deb3 100644 --- a/dotnet/test/common/BiDi/Script/ScriptCommandsTest.cs +++ b/dotnet/test/common/BiDi/Script/ScriptCommandsTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/test/common/BiDi/Script/ScriptEventsTest.cs b/dotnet/test/common/BiDi/Script/ScriptEventsTest.cs index 182255a27facf..88e73ec089e99 100644 --- a/dotnet/test/common/BiDi/Script/ScriptEventsTest.cs +++ b/dotnet/test/common/BiDi/Script/ScriptEventsTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.Script; diff --git a/dotnet/test/common/BiDi/Storage/StorageTest.cs b/dotnet/test/common/BiDi/Storage/StorageTest.cs index 4fa13039787af..bf2142f164711 100644 --- a/dotnet/test/common/BiDi/Storage/StorageTest.cs +++ b/dotnet/test/common/BiDi/Storage/StorageTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.BiDi.Network; using System; using System.Threading.Tasks; +using NUnit.Framework; +using OpenQA.Selenium.BiDi.Network; namespace OpenQA.Selenium.BiDi.Storage; diff --git a/dotnet/test/common/BiDi/WebExtension/WebExtensionTest.cs b/dotnet/test/common/BiDi/WebExtension/WebExtensionTest.cs index 5065abe2554be..8715ee4ddeb0a 100644 --- a/dotnet/test/common/BiDi/WebExtension/WebExtensionTest.cs +++ b/dotnet/test/common/BiDi/WebExtension/WebExtensionTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System.IO; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.BiDi.WebExtension; diff --git a/dotnet/test/common/ChildrenFindingTest.cs b/dotnet/test/common/ChildrenFindingTest.cs index 85bd4a9d48b96..bca22180ff770 100644 --- a/dotnet/test/common/ChildrenFindingTest.cs +++ b/dotnet/test/common/ChildrenFindingTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ClickScrollingTest.cs b/dotnet/test/common/ClickScrollingTest.cs index a0ded602215bf..878b0d0533af2 100644 --- a/dotnet/test/common/ClickScrollingTest.cs +++ b/dotnet/test/common/ClickScrollingTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Drawing; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ClickTest.cs b/dotnet/test/common/ClickTest.cs index 6d5bcd1f9d62a..e9627237314dd 100644 --- a/dotnet/test/common/ClickTest.cs +++ b/dotnet/test/common/ClickTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/CommandTests.cs b/dotnet/test/common/CommandTests.cs index 249ed0c66bb57..561a509b2f6d3 100644 --- a/dotnet/test/common/CommandTests.cs +++ b/dotnet/test/common/CommandTests.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.Generic; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ContentEditableTest.cs b/dotnet/test/common/ContentEditableTest.cs index fb15e0c763856..684a6467fe969 100644 --- a/dotnet/test/common/ContentEditableTest.cs +++ b/dotnet/test/common/ContentEditableTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/CookieImplementationTest.cs b/dotnet/test/common/CookieImplementationTest.cs index edec97e6200ea..21e9a1b9dc8d1 100644 --- a/dotnet/test/common/CookieImplementationTest.cs +++ b/dotnet/test/common/CookieImplementationTest.cs @@ -17,13 +17,13 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; -using OpenQA.Selenium.Internal; using System; using System.Collections.ObjectModel; using System.Text; using System.Text.RegularExpressions; +using NUnit.Framework; +using OpenQA.Selenium.Environment; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/CookieTest.cs b/dotnet/test/common/CookieTest.cs index 73bccb19b1fa3..c03d270cb9f53 100644 --- a/dotnet/test/common/CookieTest.cs +++ b/dotnet/test/common/CookieTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using NUnit.Framework; using OpenQA.Selenium.Internal; -using System; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/CorrectEventFiringTest.cs b/dotnet/test/common/CorrectEventFiringTest.cs index e540df5dbae7b..5657979f93d9f 100644 --- a/dotnet/test/common/CorrectEventFiringTest.cs +++ b/dotnet/test/common/CorrectEventFiringTest.cs @@ -17,13 +17,13 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; -using OpenQA.Selenium.Interactions; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; +using NUnit.Framework; +using OpenQA.Selenium.Environment; +using OpenQA.Selenium.Interactions; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/CustomDriverConfigs/StableChannelRemoteChromeDriver.cs b/dotnet/test/common/CustomDriverConfigs/StableChannelRemoteChromeDriver.cs index 4f236f8a8ed6f..d882cb192a354 100644 --- a/dotnet/test/common/CustomDriverConfigs/StableChannelRemoteChromeDriver.cs +++ b/dotnet/test/common/CustomDriverConfigs/StableChannelRemoteChromeDriver.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.Chrome; using System; +using OpenQA.Selenium.Chrome; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs b/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs index 9d5b1e6485e41..49e8042d17825 100644 --- a/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs +++ b/dotnet/test/common/CustomTestAttributes/IgnoreBrowserAttribute.cs @@ -17,12 +17,12 @@ // under the License. // +using System; +using System.Collections.Generic; using NUnit.Framework; using NUnit.Framework.Interfaces; using NUnit.Framework.Internal; using OpenQA.Selenium.Environment; -using System; -using System.Collections.Generic; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs b/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs index 73de23fc43c36..e4ce820dbb346 100644 --- a/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs +++ b/dotnet/test/common/CustomTestAttributes/IgnorePlatformAttribute.cs @@ -17,13 +17,13 @@ // under the License. // +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; using NUnit.Framework; using NUnit.Framework.Interfaces; using NUnit.Framework.Internal; using OpenQA.Selenium.Environment; -using System; -using System.Collections.Generic; -using System.Runtime.InteropServices; using OSPlatform = System.Runtime.InteropServices.OSPlatform; diff --git a/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs b/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs index 8b75e6913a04a..8e9eb424fbb33 100644 --- a/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs +++ b/dotnet/test/common/CustomTestAttributes/IgnoreTargetAttribute.cs @@ -17,11 +17,11 @@ // under the License. // +using System; using NUnit.Framework; using NUnit.Framework.Interfaces; using NUnit.Framework.Internal; using OpenQA.Selenium.Environment; -using System; #nullable enable diff --git a/dotnet/test/common/DevTools/DevToolsConsoleTest.cs b/dotnet/test/common/DevTools/DevToolsConsoleTest.cs index 105e85e4d13ba..90835081096f2 100644 --- a/dotnet/test/common/DevTools/DevToolsConsoleTest.cs +++ b/dotnet/test/common/DevTools/DevToolsConsoleTest.cs @@ -17,11 +17,11 @@ // under the License. // -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 9ee72452de9e3..492515bef789f 100644 --- a/dotnet/test/common/DevTools/DevToolsLogTest.cs +++ b/dotnet/test/common/DevTools/DevToolsLogTest.cs @@ -17,11 +17,11 @@ // under the License. // -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 1570f76b5b8ac..97f6df0634536 100644 --- a/dotnet/test/common/DevTools/DevToolsNetworkTest.cs +++ b/dotnet/test/common/DevTools/DevToolsNetworkTest.cs @@ -17,11 +17,11 @@ // under the License. // -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 d3922496306e0..037980638c9a3 100644 --- a/dotnet/test/common/DevTools/DevToolsPerformanceTest.cs +++ b/dotnet/test/common/DevTools/DevToolsPerformanceTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.DevTools; diff --git a/dotnet/test/common/DevTools/DevToolsProfilerTest.cs b/dotnet/test/common/DevTools/DevToolsProfilerTest.cs index 2f9cba866936a..250ab8a2d9ce9 100644 --- a/dotnet/test/common/DevTools/DevToolsProfilerTest.cs +++ b/dotnet/test/common/DevTools/DevToolsProfilerTest.cs @@ -17,10 +17,10 @@ // under the License. // -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 2ed331d11f5d8..4f6c2e2c237b1 100644 --- a/dotnet/test/common/DevTools/DevToolsSecurityTest.cs +++ b/dotnet/test/common/DevTools/DevToolsSecurityTest.cs @@ -17,11 +17,11 @@ // under the License. // -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/DevToolsTabsTest.cs b/dotnet/test/common/DevTools/DevToolsTabsTest.cs index cd1be7e22aefa..dff4940f9a6d2 100644 --- a/dotnet/test/common/DevTools/DevToolsTabsTest.cs +++ b/dotnet/test/common/DevTools/DevToolsTabsTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium.DevTools; diff --git a/dotnet/test/common/DevTools/DevToolsTargetTest.cs b/dotnet/test/common/DevTools/DevToolsTargetTest.cs index 8f267342533bb..31745e51cb480 100644 --- a/dotnet/test/common/DevTools/DevToolsTargetTest.cs +++ b/dotnet/test/common/DevTools/DevToolsTargetTest.cs @@ -17,11 +17,11 @@ // under the License. // -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/DownloadsTest.cs b/dotnet/test/common/DownloadsTest.cs index a3aec0534d72e..d8ee90c128a88 100644 --- a/dotnet/test/common/DownloadsTest.cs +++ b/dotnet/test/common/DownloadsTest.cs @@ -17,14 +17,14 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; -using OpenQA.Selenium.Remote; -using OpenQA.Selenium.Support.UI; using System; using System.Collections.Generic; using System.IO; using System.Linq; +using NUnit.Framework; +using OpenQA.Selenium.Environment; +using OpenQA.Selenium.Remote; +using OpenQA.Selenium.Support.UI; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/DriverElementFindingTest.cs b/dotnet/test/common/DriverElementFindingTest.cs index 5e66d9d77b4ba..4c7cc09425ce9 100644 --- a/dotnet/test/common/DriverElementFindingTest.cs +++ b/dotnet/test/common/DriverElementFindingTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/DriverTestFixture.cs b/dotnet/test/common/DriverTestFixture.cs index eaee68f811a0b..aa0b84dbc1547 100644 --- a/dotnet/test/common/DriverTestFixture.cs +++ b/dotnet/test/common/DriverTestFixture.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; using static NUnit.Framework.Interfaces.ResultState; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ElementAttributeTest.cs b/dotnet/test/common/ElementAttributeTest.cs index ff70603499456..2ac8c053665d8 100644 --- a/dotnet/test/common/ElementAttributeTest.cs +++ b/dotnet/test/common/ElementAttributeTest.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ElementElementFindingTest.cs b/dotnet/test/common/ElementElementFindingTest.cs index 9f439f1cd3383..12052b1f212f4 100644 --- a/dotnet/test/common/ElementElementFindingTest.cs +++ b/dotnet/test/common/ElementElementFindingTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ElementEqualityTest.cs b/dotnet/test/common/ElementEqualityTest.cs index f6d8d25e51f56..5d368b6469898 100644 --- a/dotnet/test/common/ElementEqualityTest.cs +++ b/dotnet/test/common/ElementEqualityTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Collections.ObjectModel; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Collections.ObjectModel; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ElementFindingTest.cs b/dotnet/test/common/ElementFindingTest.cs index 4ff8f7bab9b89..3740baaa38e78 100644 --- a/dotnet/test/common/ElementFindingTest.cs +++ b/dotnet/test/common/ElementFindingTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.ObjectModel; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/Environment/DriverFactory.cs b/dotnet/test/common/Environment/DriverFactory.cs index f58eea2430673..725b73dcf151b 100644 --- a/dotnet/test/common/Environment/DriverFactory.cs +++ b/dotnet/test/common/Environment/DriverFactory.cs @@ -17,16 +17,16 @@ // under the License. // +using System; +using System.Collections.Generic; +using System.IO; +using System.Reflection; using OpenQA.Selenium.Chrome; using OpenQA.Selenium.Chromium; using OpenQA.Selenium.Edge; using OpenQA.Selenium.Firefox; using OpenQA.Selenium.IE; using OpenQA.Selenium.Safari; -using System; -using System.Collections.Generic; -using System.IO; -using System.Reflection; namespace OpenQA.Selenium.Environment; diff --git a/dotnet/test/common/Environment/EnvironmentManager.cs b/dotnet/test/common/Environment/EnvironmentManager.cs index 380871e2f79b6..e0e8ed2c4c790 100644 --- a/dotnet/test/common/Environment/EnvironmentManager.cs +++ b/dotnet/test/common/Environment/EnvironmentManager.cs @@ -17,14 +17,14 @@ // under the License. // -using Bazel; -using Newtonsoft.Json; -using NUnit.Framework; -using OpenQA.Selenium.Internal; using System; using System.IO; using System.Linq; using System.Runtime.InteropServices; +using Bazel; +using Newtonsoft.Json; +using NUnit.Framework; +using OpenQA.Selenium.Internal; namespace OpenQA.Selenium.Environment; diff --git a/dotnet/test/common/Environment/TestEnvironment.cs b/dotnet/test/common/Environment/TestEnvironment.cs index 93f4551d43fd8..523a614ec5169 100644 --- a/dotnet/test/common/Environment/TestEnvironment.cs +++ b/dotnet/test/common/Environment/TestEnvironment.cs @@ -17,8 +17,8 @@ // under the License. // -using Newtonsoft.Json; using System.Collections.Generic; +using Newtonsoft.Json; namespace OpenQA.Selenium.Environment; diff --git a/dotnet/test/common/Environment/TestWebServer.cs b/dotnet/test/common/Environment/TestWebServer.cs index 51e2070688b53..a4ca2b46d49b2 100644 --- a/dotnet/test/common/Environment/TestWebServer.cs +++ b/dotnet/test/common/Environment/TestWebServer.cs @@ -17,13 +17,13 @@ // under the License. // -using Bazel; using System; using System.Diagnostics; using System.IO; using System.Net; using System.Net.Http; using System.Threading.Tasks; +using Bazel; namespace OpenQA.Selenium.Environment; diff --git a/dotnet/test/common/Environment/UrlBuilder.cs b/dotnet/test/common/Environment/UrlBuilder.cs index d9bb5cfc0d96e..691933de6db4f 100644 --- a/dotnet/test/common/Environment/UrlBuilder.cs +++ b/dotnet/test/common/Environment/UrlBuilder.cs @@ -17,13 +17,13 @@ // under the License. // -using Newtonsoft.Json; using System; using System.Collections.Generic; using System.Net; using System.Net.Http; using System.Net.Sockets; using System.Text; +using Newtonsoft.Json; namespace OpenQA.Selenium.Environment; diff --git a/dotnet/test/common/ExecutingAsyncJavascriptTest.cs b/dotnet/test/common/ExecutingAsyncJavascriptTest.cs index 219fe1819cd67..55dc5c12d7cea 100644 --- a/dotnet/test/common/ExecutingAsyncJavascriptTest.cs +++ b/dotnet/test/common/ExecutingAsyncJavascriptTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ExecutingJavascriptTest.cs b/dotnet/test/common/ExecutingJavascriptTest.cs index 1baa3cd7dba98..e5175282eabb2 100644 --- a/dotnet/test/common/ExecutingJavascriptTest.cs +++ b/dotnet/test/common/ExecutingJavascriptTest.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/FormHandlingTests.cs b/dotnet/test/common/FormHandlingTests.cs index 6b0e9dea34a9e..1ac59d510eb7c 100644 --- a/dotnet/test/common/FormHandlingTests.cs +++ b/dotnet/test/common/FormHandlingTests.cs @@ -17,9 +17,9 @@ // under the License. // +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 21efc2061a053..3ff176cf463ec 100644 --- a/dotnet/test/common/FrameSwitchingTest.cs +++ b/dotnet/test/common/FrameSwitchingTest.cs @@ -17,9 +17,9 @@ // under the License. // +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 28d5c35ee5502..0e877174ed9a8 100644 --- a/dotnet/test/common/GetLogsTest.cs +++ b/dotnet/test/common/GetLogsTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Chrome; using System.Collections.Generic; using System.Collections.ObjectModel; +using NUnit.Framework; +using OpenQA.Selenium.Chrome; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ImplicitWaitTest.cs b/dotnet/test/common/ImplicitWaitTest.cs index 0e839966c579e..fba8f6b42c086 100644 --- a/dotnet/test/common/ImplicitWaitTest.cs +++ b/dotnet/test/common/ImplicitWaitTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/Interactions/ActionBuilderTest.cs b/dotnet/test/common/Interactions/ActionBuilderTest.cs index a022b94e0d1b2..857bb441406fc 100644 --- a/dotnet/test/common/Interactions/ActionBuilderTest.cs +++ b/dotnet/test/common/Interactions/ActionBuilderTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Collections.Generic; +using NUnit.Framework; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/test/common/Interactions/BasicKeyboardInterfaceTest.cs b/dotnet/test/common/Interactions/BasicKeyboardInterfaceTest.cs index f5f2aadd04652..00729b3b6d1a6 100644 --- a/dotnet/test/common/Interactions/BasicKeyboardInterfaceTest.cs +++ b/dotnet/test/common/Interactions/BasicKeyboardInterfaceTest.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Drawing; using System.Runtime.InteropServices; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs b/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs index 0a1769125706b..dc17b81872253 100644 --- a/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs +++ b/dotnet/test/common/Interactions/BasicMouseInterfaceTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Drawing; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs b/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs index 86e85dd6a35ad..4788104a83f93 100644 --- a/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs +++ b/dotnet/test/common/Interactions/BasicWheelInterfaceTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System; +using NUnit.Framework; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/test/common/Interactions/CombinedInputActionsTest.cs b/dotnet/test/common/Interactions/CombinedInputActionsTest.cs index 0345118187f34..7b43050b8cd7b 100644 --- a/dotnet/test/common/Interactions/CombinedInputActionsTest.cs +++ b/dotnet/test/common/Interactions/CombinedInputActionsTest.cs @@ -17,12 +17,12 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.ObjectModel; using System.Drawing; using System.Runtime.InteropServices; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/test/common/Interactions/DragAndDropTest.cs b/dotnet/test/common/Interactions/DragAndDropTest.cs index 61c7eaab7c422..84d2e35252cf5 100644 --- a/dotnet/test/common/Interactions/DragAndDropTest.cs +++ b/dotnet/test/common/Interactions/DragAndDropTest.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Drawing; using System.Text.RegularExpressions; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.Interactions; diff --git a/dotnet/test/common/Internal/Logging/FileLogHandlerTest.cs b/dotnet/test/common/Internal/Logging/FileLogHandlerTest.cs index e3b0b6a801e97..1432b0a846bab 100644 --- a/dotnet/test/common/Internal/Logging/FileLogHandlerTest.cs +++ b/dotnet/test/common/Internal/Logging/FileLogHandlerTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; using System; using System.IO; using System.Text.RegularExpressions; +using NUnit.Framework; namespace OpenQA.Selenium.Internal.Logging; diff --git a/dotnet/test/common/Internal/Logging/LogTest.cs b/dotnet/test/common/Internal/Logging/LogTest.cs index 841e66e500f1f..0023071adbcec 100644 --- a/dotnet/test/common/Internal/Logging/LogTest.cs +++ b/dotnet/test/common/Internal/Logging/LogTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Collections.Generic; +using NUnit.Framework; namespace OpenQA.Selenium.Internal.Logging; diff --git a/dotnet/test/common/JavascriptEnabledBrowserTest.cs b/dotnet/test/common/JavascriptEnabledBrowserTest.cs index 2c6b89c3b823e..dc8785ca60faf 100644 --- a/dotnet/test/common/JavascriptEnabledBrowserTest.cs +++ b/dotnet/test/common/JavascriptEnabledBrowserTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using NUnit.Framework.Constraints; using System; using System.Drawing; +using NUnit.Framework; +using NUnit.Framework.Constraints; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/MiscTest.cs b/dotnet/test/common/MiscTest.cs index 675c7ec4c39a0..ae47fc4390eda 100644 --- a/dotnet/test/common/MiscTest.cs +++ b/dotnet/test/common/MiscTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Collections.Generic; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Collections.Generic; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/NavigationTest.cs b/dotnet/test/common/NavigationTest.cs index aa5c834b3c4c9..01217f4212d7b 100644 --- a/dotnet/test/common/NavigationTest.cs +++ b/dotnet/test/common/NavigationTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Threading.Tasks; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/NetworkInterceptionTests.cs b/dotnet/test/common/NetworkInterceptionTests.cs index c91ab5aa99fe0..51fa4bca5dda2 100644 --- a/dotnet/test/common/NetworkInterceptionTests.cs +++ b/dotnet/test/common/NetworkInterceptionTests.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.DevTools; -using System.Threading.Tasks; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ObjectStateAssumptionsTest.cs b/dotnet/test/common/ObjectStateAssumptionsTest.cs index aa73ff869014e..8700dc1b68054 100644 --- a/dotnet/test/common/ObjectStateAssumptionsTest.cs +++ b/dotnet/test/common/ObjectStateAssumptionsTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/PageLoadingTest.cs b/dotnet/test/common/PageLoadingTest.cs index 2fa4d99b830b6..9e409463f0c66 100644 --- a/dotnet/test/common/PageLoadingTest.cs +++ b/dotnet/test/common/PageLoadingTest.cs @@ -17,9 +17,9 @@ // under the License. // +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 3c26e4c1a8e5e..dd393fd5303da 100644 --- a/dotnet/test/common/PartialLinkTextMatchTest.cs +++ b/dotnet/test/common/PartialLinkTextMatchTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/PositionAndSizeTest.cs b/dotnet/test/common/PositionAndSizeTest.cs index 33e9eef5b14cc..823067f652252 100644 --- a/dotnet/test/common/PositionAndSizeTest.cs +++ b/dotnet/test/common/PositionAndSizeTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Drawing; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/PrintTest.cs b/dotnet/test/common/PrintTest.cs index 16816467db19a..877d73cb91e39 100644 --- a/dotnet/test/common/PrintTest.cs +++ b/dotnet/test/common/PrintTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/ProxySettingTest.cs b/dotnet/test/common/ProxySettingTest.cs index a52708a21fc7b..25f014718d5ba 100644 --- a/dotnet/test/common/ProxySettingTest.cs +++ b/dotnet/test/common/ProxySettingTest.cs @@ -17,11 +17,6 @@ // under the License. // -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; @@ -29,6 +24,11 @@ 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 2f0e5ab816e40..2b664c43c2c6a 100644 --- a/dotnet/test/common/ProxyTest.cs +++ b/dotnet/test/common/ProxyTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.Generic; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/RelativeLocatorTest.cs b/dotnet/test/common/RelativeLocatorTest.cs index 8ab42ad93e37c..74ff89b40b765 100644 --- a/dotnet/test/common/RelativeLocatorTest.cs +++ b/dotnet/test/common/RelativeLocatorTest.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/SelectElementHandlingTest.cs b/dotnet/test/common/SelectElementHandlingTest.cs index f2aedaa5e879e..1b5416e19e70c 100644 --- a/dotnet/test/common/SelectElementHandlingTest.cs +++ b/dotnet/test/common/SelectElementHandlingTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System.Collections.Generic; using System.Collections.ObjectModel; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/SessionHandlingTest.cs b/dotnet/test/common/SessionHandlingTest.cs index c0603bad3d299..348bd07df2ae1 100644 --- a/dotnet/test/common/SessionHandlingTest.cs +++ b/dotnet/test/common/SessionHandlingTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/SlowLoadingPageTest.cs b/dotnet/test/common/SlowLoadingPageTest.cs index c13b5f5c8a631..ad78ace5e7814 100644 --- a/dotnet/test/common/SlowLoadingPageTest.cs +++ b/dotnet/test/common/SlowLoadingPageTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/StaleElementReferenceTest.cs b/dotnet/test/common/StaleElementReferenceTest.cs index a8b273cb7f349..212ef4eebd488 100644 --- a/dotnet/test/common/StaleElementReferenceTest.cs +++ b/dotnet/test/common/StaleElementReferenceTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Drawing; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/SvgElementTest.cs b/dotnet/test/common/SvgElementTest.cs index c9a0260304947..1d80d8318db06 100644 --- a/dotnet/test/common/SvgElementTest.cs +++ b/dotnet/test/common/SvgElementTest.cs @@ -17,9 +17,9 @@ // under the License. // -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 6cf5825361bf1..fde0235b75f9b 100644 --- a/dotnet/test/common/TakesScreenshotTest.cs +++ b/dotnet/test/common/TakesScreenshotTest.cs @@ -17,12 +17,12 @@ // under the License. // -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; diff --git a/dotnet/test/common/TargetLocatorTest.cs b/dotnet/test/common/TargetLocatorTest.cs index 39db775fb2377..dafaa24378b7d 100644 --- a/dotnet/test/common/TargetLocatorTest.cs +++ b/dotnet/test/common/TargetLocatorTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/TextHandlingTest.cs b/dotnet/test/common/TextHandlingTest.cs index 6097d0e464eec..3e3a5d1dc5a30 100644 --- a/dotnet/test/common/TextHandlingTest.cs +++ b/dotnet/test/common/TextHandlingTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Text.RegularExpressions; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/TimeoutDriverOptionsTest.cs b/dotnet/test/common/TimeoutDriverOptionsTest.cs index 9dd21b76e2b29..3b9c3987d5770 100644 --- a/dotnet/test/common/TimeoutDriverOptionsTest.cs +++ b/dotnet/test/common/TimeoutDriverOptionsTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/TypingTest.cs b/dotnet/test/common/TypingTest.cs index 0debfa6bebf99..fa1a556aa3e0b 100644 --- a/dotnet/test/common/TypingTest.cs +++ b/dotnet/test/common/TypingTest.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Runtime.InteropServices; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/UnexpectedAlertBehaviorTest.cs b/dotnet/test/common/UnexpectedAlertBehaviorTest.cs index 3b199ff9259eb..faed310f83ce1 100644 --- a/dotnet/test/common/UnexpectedAlertBehaviorTest.cs +++ b/dotnet/test/common/UnexpectedAlertBehaviorTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs b/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs index 9cc5b5b95e18e..3a88510e398dd 100644 --- a/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs +++ b/dotnet/test/common/VirtualAuthn/VirtualAuthenticatorTest.cs @@ -17,13 +17,13 @@ // under the License. // -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 NUnit.Framework; +using OpenQA.Selenium.Environment; +using OpenQA.Selenium.Internal; 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 e7595136baf15..f427817d59eac 100644 --- a/dotnet/test/common/VisibilityTest.cs +++ b/dotnet/test/common/VisibilityTest.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.ObjectModel; using System.Drawing; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/WindowSwitchingTest.cs b/dotnet/test/common/WindowSwitchingTest.cs index 5d2c41f8baa3c..c02dfa3217dca 100644 --- a/dotnet/test/common/WindowSwitchingTest.cs +++ b/dotnet/test/common/WindowSwitchingTest.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; using System.Collections.ObjectModel; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium; diff --git a/dotnet/test/common/WindowTest.cs b/dotnet/test/common/WindowTest.cs index 2d5adb8cbbe1b..097c18a447318 100644 --- a/dotnet/test/common/WindowTest.cs +++ b/dotnet/test/common/WindowTest.cs @@ -17,9 +17,9 @@ // under the License. // -using NUnit.Framework; using System; using System.Drawing; +using NUnit.Framework; namespace OpenQA.Selenium; diff --git a/dotnet/test/edge/AssemblyTeardown.cs b/dotnet/test/edge/AssemblyTeardown.cs index 808de2076d06a..9e5d0ce3032de 100644 --- a/dotnet/test/edge/AssemblyTeardown.cs +++ b/dotnet/test/edge/AssemblyTeardown.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium.Edge; diff --git a/dotnet/test/firefox/AssemblyTeardown.cs b/dotnet/test/firefox/AssemblyTeardown.cs index 9dfd96c48143c..0739312fc79f0 100644 --- a/dotnet/test/firefox/AssemblyTeardown.cs +++ b/dotnet/test/firefox/AssemblyTeardown.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium.Firefox; diff --git a/dotnet/test/firefox/FirefoxDriverServiceTest.cs b/dotnet/test/firefox/FirefoxDriverServiceTest.cs index 24ae78d2d0138..c1263f8b9c073 100644 --- a/dotnet/test/firefox/FirefoxDriverServiceTest.cs +++ b/dotnet/test/firefox/FirefoxDriverServiceTest.cs @@ -19,9 +19,9 @@ using System; using System.Collections.Generic; -using NUnit.Framework; using System.IO; using System.Linq; +using NUnit.Framework; using OpenQA.Selenium.Internal.Logging; namespace OpenQA.Selenium.Firefox; diff --git a/dotnet/test/firefox/FirefoxDriverTest.cs b/dotnet/test/firefox/FirefoxDriverTest.cs index 102fc3d94c301..0305551dfe413 100644 --- a/dotnet/test/firefox/FirefoxDriverTest.cs +++ b/dotnet/test/firefox/FirefoxDriverTest.cs @@ -17,12 +17,12 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; using System.IO; using System.Threading; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.Firefox; diff --git a/dotnet/test/firefox/FirefoxProfileTests.cs b/dotnet/test/firefox/FirefoxProfileTests.cs index 72a10396a3a97..e56f8e3cb813a 100644 --- a/dotnet/test/firefox/FirefoxProfileTests.cs +++ b/dotnet/test/firefox/FirefoxProfileTests.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System.Collections.Generic; +using NUnit.Framework; namespace OpenQA.Selenium.Firefox; diff --git a/dotnet/test/ie/AssemblyTeardown.cs b/dotnet/test/ie/AssemblyTeardown.cs index 1355fe5adff76..1cdcc10b745aa 100644 --- a/dotnet/test/ie/AssemblyTeardown.cs +++ b/dotnet/test/ie/AssemblyTeardown.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium.IE; diff --git a/dotnet/test/ie/IeSpecificTests.cs b/dotnet/test/ie/IeSpecificTests.cs index c0077e7f2e44b..c5e6f8c024660 100644 --- a/dotnet/test/ie/IeSpecificTests.cs +++ b/dotnet/test/ie/IeSpecificTests.cs @@ -17,13 +17,13 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; -using OpenQA.Selenium.Interactions; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using NUnit.Framework; +using OpenQA.Selenium.Environment; +using OpenQA.Selenium.Interactions; namespace OpenQA.Selenium.IE; diff --git a/dotnet/test/remote/AssemblyTeardown.cs b/dotnet/test/remote/AssemblyTeardown.cs index f1f04dab625a2..2ede742b79994 100644 --- a/dotnet/test/remote/AssemblyTeardown.cs +++ b/dotnet/test/remote/AssemblyTeardown.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/test/remote/ChromeRemoteWebDriver.cs b/dotnet/test/remote/ChromeRemoteWebDriver.cs index 1567b3e6189cf..e402118467c6e 100644 --- a/dotnet/test/remote/ChromeRemoteWebDriver.cs +++ b/dotnet/test/remote/ChromeRemoteWebDriver.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.Chrome; using System; +using OpenQA.Selenium.Chrome; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/test/remote/EdgeRemoteWebDriver.cs b/dotnet/test/remote/EdgeRemoteWebDriver.cs index 8be433dee04d3..c52e99336479f 100644 --- a/dotnet/test/remote/EdgeRemoteWebDriver.cs +++ b/dotnet/test/remote/EdgeRemoteWebDriver.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.Edge; using System; +using OpenQA.Selenium.Edge; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/test/remote/FirefoxRemoteWebDriver.cs b/dotnet/test/remote/FirefoxRemoteWebDriver.cs index 82a4d0c7c55e6..fd0982bdd312a 100644 --- a/dotnet/test/remote/FirefoxRemoteWebDriver.cs +++ b/dotnet/test/remote/FirefoxRemoteWebDriver.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.Firefox; using System; +using OpenQA.Selenium.Firefox; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/test/remote/RemoteSessionCreationTests.cs b/dotnet/test/remote/RemoteSessionCreationTests.cs index 5b4cdf7f3996b..04f2274767acc 100644 --- a/dotnet/test/remote/RemoteSessionCreationTests.cs +++ b/dotnet/test/remote/RemoteSessionCreationTests.cs @@ -17,10 +17,10 @@ // under the License. // -using NUnit.Framework; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Nodes; +using NUnit.Framework; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/test/remote/RemoteWebDriverSpecificTests.cs b/dotnet/test/remote/RemoteWebDriverSpecificTests.cs index fad9c7057aa54..5f9bf0b8636de 100644 --- a/dotnet/test/remote/RemoteWebDriverSpecificTests.cs +++ b/dotnet/test/remote/RemoteWebDriverSpecificTests.cs @@ -17,10 +17,10 @@ // under the License. // +using System; 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 3afe18b45d2cd..43798c980fcde 100644 --- a/dotnet/test/remote/TestInternetExplorerRemoteWebDriver.cs +++ b/dotnet/test/remote/TestInternetExplorerRemoteWebDriver.cs @@ -17,8 +17,8 @@ // under the License. // -using OpenQA.Selenium.IE; using System; +using OpenQA.Selenium.IE; namespace OpenQA.Selenium.Remote; diff --git a/dotnet/test/support/Events/EventFiringWebDriverTest.cs b/dotnet/test/support/Events/EventFiringWebDriverTest.cs index 560405284a419..c93f609053b88 100644 --- a/dotnet/test/support/Events/EventFiringWebDriverTest.cs +++ b/dotnet/test/support/Events/EventFiringWebDriverTest.cs @@ -17,12 +17,12 @@ // under the License. // -using Moq; -using NUnit.Framework; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; +using Moq; +using NUnit.Framework; namespace OpenQA.Selenium.Support.Events; diff --git a/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs b/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs index 54d4824292e4d..683fbacda2e4b 100644 --- a/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs +++ b/dotnet/test/support/Extensions/ExecuteJavaScriptTest.cs @@ -17,11 +17,11 @@ // under the License. // -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 9cc81a73925fe..4999a567971e6 100644 --- a/dotnet/test/support/UI/DefaultWaitTest.cs +++ b/dotnet/test/support/UI/DefaultWaitTest.cs @@ -17,10 +17,10 @@ // under the License. // -using Moq; -using NUnit.Framework; using System; using System.Runtime.CompilerServices; +using Moq; +using NUnit.Framework; namespace OpenQA.Selenium.Support.UI; diff --git a/dotnet/test/support/UI/LoadableComponentTests.cs b/dotnet/test/support/UI/LoadableComponentTests.cs index f0888e1372a87..685d6e70c7b4c 100644 --- a/dotnet/test/support/UI/LoadableComponentTests.cs +++ b/dotnet/test/support/UI/LoadableComponentTests.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System; +using NUnit.Framework; namespace OpenQA.Selenium.Support.UI; diff --git a/dotnet/test/support/UI/PopupWindowFinderTest.cs b/dotnet/test/support/UI/PopupWindowFinderTest.cs index d821772fe4750..772bf949bfc47 100644 --- a/dotnet/test/support/UI/PopupWindowFinderTest.cs +++ b/dotnet/test/support/UI/PopupWindowFinderTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System.Threading.Tasks; using NUnit.Framework; using OpenQA.Selenium.Environment; -using System.Threading.Tasks; namespace OpenQA.Selenium.Support.UI; diff --git a/dotnet/test/support/UI/SelectBrowserTests.cs b/dotnet/test/support/UI/SelectBrowserTests.cs index 0fc4962e67a29..8ceff74ecff1d 100644 --- a/dotnet/test/support/UI/SelectBrowserTests.cs +++ b/dotnet/test/support/UI/SelectBrowserTests.cs @@ -17,11 +17,11 @@ // under the License. // -using NUnit.Framework; -using OpenQA.Selenium.Environment; using System; using System.Collections.Generic; using System.Threading.Tasks; +using NUnit.Framework; +using OpenQA.Selenium.Environment; namespace OpenQA.Selenium.Support.UI; diff --git a/dotnet/test/support/UI/SelectTests.cs b/dotnet/test/support/UI/SelectTests.cs index d02def7aeb031..27b7c04ce5e1e 100644 --- a/dotnet/test/support/UI/SelectTests.cs +++ b/dotnet/test/support/UI/SelectTests.cs @@ -17,12 +17,12 @@ // under the License. // -using Moq; -using NUnit.Framework; using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Reflection; +using Moq; +using NUnit.Framework; namespace OpenQA.Selenium.Support.UI; diff --git a/dotnet/test/support/UI/SlowLoadableComponentTest.cs b/dotnet/test/support/UI/SlowLoadableComponentTest.cs index 8aaf0e373a4fb..c7298163528ed 100644 --- a/dotnet/test/support/UI/SlowLoadableComponentTest.cs +++ b/dotnet/test/support/UI/SlowLoadableComponentTest.cs @@ -17,8 +17,8 @@ // under the License. // -using NUnit.Framework; using System; +using NUnit.Framework; namespace OpenQA.Selenium.Support.UI; diff --git a/dotnet/test/support/UI/WebDriverWaitTest.cs b/dotnet/test/support/UI/WebDriverWaitTest.cs index a068d9be27551..d2becd0173271 100644 --- a/dotnet/test/support/UI/WebDriverWaitTest.cs +++ b/dotnet/test/support/UI/WebDriverWaitTest.cs @@ -17,9 +17,9 @@ // under the License. // +using System; using Moq; using NUnit.Framework; -using System; namespace OpenQA.Selenium.Support.UI;