Skip to content

Commit cca0889

Browse files
authored
[dotnet] update formatting rules (#17019)
* fix IDE0065 violations * add explicit whitespace rules * fix import ordering * fix IDE0044 violations * fix IDE0076 violations * fix IDE1005 violations * Add TODO for future work
1 parent a0ef99e commit cca0889

273 files changed

Lines changed: 489 additions & 559 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dotnet/.editorconfig

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,85 @@
11
[*.cs]
2-
csharp_style_namespace_declarations=file_scoped:suggestion
2+
# See all defaults set in selenium/.editorconfig
3+
4+
# dotnet format whitespace
5+
6+
# New lines and braces (Allman-style)
7+
csharp_new_line_before_open_brace = all
8+
csharp_new_line_before_else = true
9+
csharp_new_line_before_catch = true
10+
csharp_new_line_before_finally = true
11+
dotnet_style_operator_placement_when_wrapping = end_of_line
12+
13+
# Preserve compact formatting where used
14+
csharp_preserve_single_line_statements = true
15+
csharp_preserve_single_line_blocks = true
16+
17+
# Indentation
18+
csharp_indent_block_contents = true
19+
csharp_indent_braces = false
20+
csharp_indent_case_contents = true
21+
csharp_indent_case_contents_when_block = true
22+
csharp_indent_switch_labels = true
23+
csharp_indent_labels = one_less_than_current
24+
25+
# Spacing
26+
csharp_space_after_cast = false
27+
csharp_space_after_comma = true
28+
csharp_space_after_dot = false
29+
csharp_space_after_semicolon_in_for_statement = true
30+
csharp_space_around_binary_operators = before_and_after
31+
csharp_space_before_colon_in_inheritance_clause = true
32+
csharp_space_after_colon_in_inheritance_clause = true
33+
csharp_space_between_method_call_name_and_opening_parenthesis = false
34+
csharp_space_between_method_call_parameter_list_parentheses = false
35+
csharp_space_between_method_declaration_name_and_open_parenthesis = false
36+
csharp_space_between_method_declaration_parameter_list_parentheses = false
37+
csharp_space_after_keywords_in_control_flow_statements = true
38+
39+
# dotnet format style
40+
41+
# Namespace
42+
csharp_style_namespace_declarations=file_scoped:warning
43+
44+
# Using directives
45+
dotnet_sort_system_directives_first = true
46+
dotnet_separate_import_directive_groups = false
47+
csharp_using_directive_placement = outside_namespace:warning
48+
49+
# Roslyn
50+
dotnet_diagnostic.IDE0044.severity = warning # Make field readonly
51+
dotnet_diagnostic.IDE0076.severity = warning # Invalid suppression
52+
dotnet_diagnostic.IDE1005.severity = warning # Delegate invocation
53+
54+
# TODO: Additional violations to investigate
55+
# The following are the number of violations for each diagnostic;
56+
# They currently fail at info, the goal is to fix and explicitly set to warning above
57+
# Investigate with `dotnet format style --diagnostics IDEXXXX --severity info`
58+
# 1183 IDE0090
59+
# 633 IDE0028
60+
# 252 IDE0290
61+
# 169 IDE0077
62+
# 66 IDE0130
63+
# 65 IDE0300
64+
# 57 IDE1005
65+
# 42 IDE0017
66+
# 39 IDE0039
67+
# 36 IDE0063
68+
# 33 IDE0306
69+
# 31 IDE0083
70+
# 30 IDE0016
71+
# 30 IDE0059
72+
# 26 IDE0305
73+
# 18 IDE0031
74+
# 12 IDE0270
75+
# 11 IDE0057
76+
# 11 IDE0054
77+
# 9 IDE0350
78+
# 9 IDE0074
79+
# 7 IDE0060
80+
# 3 IDE0150
81+
# 2 IDE0038
82+
# 1 IDE0056
83+
# 1 IDE0034
84+
# 1 IDE0018
85+
# ? IDE1006

dotnet/src/support/Events/EventFiringWebDriver.cs

Lines changed: 17 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -603,10 +603,7 @@ protected virtual void Dispose(bool disposing)
603603
/// <param name="e">A <see cref="WebDriverNavigationEventArgs"/> that contains the event data.</param>
604604
protected virtual void OnNavigating(WebDriverNavigationEventArgs e)
605605
{
606-
if (this.Navigating != null)
607-
{
608-
this.Navigating(this, e);
609-
}
606+
this.Navigating?.Invoke(this, e);
610607
}
611608

612609
/// <summary>
@@ -615,10 +612,7 @@ protected virtual void OnNavigating(WebDriverNavigationEventArgs e)
615612
/// <param name="e">A <see cref="WebDriverNavigationEventArgs"/> that contains the event data.</param>
616613
protected virtual void OnNavigated(WebDriverNavigationEventArgs e)
617614
{
618-
if (this.Navigated != null)
619-
{
620-
this.Navigated(this, e);
621-
}
615+
this.Navigated?.Invoke(this, e);
622616
}
623617

624618
/// <summary>
@@ -627,10 +621,7 @@ protected virtual void OnNavigated(WebDriverNavigationEventArgs e)
627621
/// <param name="e">A <see cref="WebDriverNavigationEventArgs"/> that contains the event data.</param>
628622
protected virtual void OnNavigatingBack(WebDriverNavigationEventArgs e)
629623
{
630-
if (this.NavigatingBack != null)
631-
{
632-
this.NavigatingBack(this, e);
633-
}
624+
this.NavigatingBack?.Invoke(this, e);
634625
}
635626

636627
/// <summary>
@@ -639,10 +630,7 @@ protected virtual void OnNavigatingBack(WebDriverNavigationEventArgs e)
639630
/// <param name="e">A <see cref="WebDriverNavigationEventArgs"/> that contains the event data.</param>
640631
protected virtual void OnNavigatedBack(WebDriverNavigationEventArgs e)
641632
{
642-
if (this.NavigatedBack != null)
643-
{
644-
this.NavigatedBack(this, e);
645-
}
633+
this.NavigatedBack?.Invoke(this, e);
646634
}
647635

648636
/// <summary>
@@ -651,10 +639,7 @@ protected virtual void OnNavigatedBack(WebDriverNavigationEventArgs e)
651639
/// <param name="e">A <see cref="WebDriverNavigationEventArgs"/> that contains the event data.</param>
652640
protected virtual void OnNavigatingForward(WebDriverNavigationEventArgs e)
653641
{
654-
if (this.NavigatingForward != null)
655-
{
656-
this.NavigatingForward(this, e);
657-
}
642+
this.NavigatingForward?.Invoke(this, e);
658643
}
659644

660645
/// <summary>
@@ -663,10 +648,7 @@ protected virtual void OnNavigatingForward(WebDriverNavigationEventArgs e)
663648
/// <param name="e">A <see cref="WebDriverNavigationEventArgs"/> that contains the event data.</param>
664649
protected virtual void OnNavigatedForward(WebDriverNavigationEventArgs e)
665650
{
666-
if (this.NavigatedForward != null)
667-
{
668-
this.NavigatedForward(this, e);
669-
}
651+
this.NavigatedForward?.Invoke(this, e);
670652
}
671653

672654
/// <summary>
@@ -675,10 +657,7 @@ protected virtual void OnNavigatedForward(WebDriverNavigationEventArgs e)
675657
/// <param name="e">A <see cref="WebElementEventArgs"/> that contains the event data.</param>
676658
protected virtual void OnElementClicking(WebElementEventArgs e)
677659
{
678-
if (this.ElementClicking != null)
679-
{
680-
this.ElementClicking(this, e);
681-
}
660+
this.ElementClicking?.Invoke(this, e);
682661
}
683662

684663
/// <summary>
@@ -687,10 +666,7 @@ protected virtual void OnElementClicking(WebElementEventArgs e)
687666
/// <param name="e">A <see cref="WebElementEventArgs"/> that contains the event data.</param>
688667
protected virtual void OnElementClicked(WebElementEventArgs e)
689668
{
690-
if (this.ElementClicked != null)
691-
{
692-
this.ElementClicked(this, e);
693-
}
669+
this.ElementClicked?.Invoke(this, e);
694670
}
695671

696672
/// <summary>
@@ -699,10 +675,7 @@ protected virtual void OnElementClicked(WebElementEventArgs e)
699675
/// <param name="e">A <see cref="WebElementValueEventArgs"/> that contains the event data.</param>
700676
protected virtual void OnElementValueChanging(WebElementValueEventArgs e)
701677
{
702-
if (this.ElementValueChanging != null)
703-
{
704-
this.ElementValueChanging(this, e);
705-
}
678+
this.ElementValueChanging?.Invoke(this, e);
706679
}
707680

708681
/// <summary>
@@ -711,10 +684,7 @@ protected virtual void OnElementValueChanging(WebElementValueEventArgs e)
711684
/// <param name="e">A <see cref="WebElementValueEventArgs"/> that contains the event data.</param>
712685
protected virtual void OnElementValueChanged(WebElementValueEventArgs e)
713686
{
714-
if (this.ElementValueChanged != null)
715-
{
716-
this.ElementValueChanged(this, e);
717-
}
687+
this.ElementValueChanged?.Invoke(this, e);
718688
}
719689

720690
/// <summary>
@@ -723,10 +693,7 @@ protected virtual void OnElementValueChanged(WebElementValueEventArgs e)
723693
/// <param name="e">A <see cref="FindElementEventArgs"/> that contains the event data.</param>
724694
protected virtual void OnFindingElement(FindElementEventArgs e)
725695
{
726-
if (this.FindingElement != null)
727-
{
728-
this.FindingElement(this, e);
729-
}
696+
this.FindingElement?.Invoke(this, e);
730697
}
731698

732699
/// <summary>
@@ -735,10 +702,7 @@ protected virtual void OnFindingElement(FindElementEventArgs e)
735702
/// <param name="e">A <see cref="FindElementEventArgs"/> that contains the event data.</param>
736703
protected virtual void OnFindElementCompleted(FindElementEventArgs e)
737704
{
738-
if (this.FindElementCompleted != null)
739-
{
740-
this.FindElementCompleted(this, e);
741-
}
705+
this.FindElementCompleted?.Invoke(this, e);
742706
}
743707

744708
/// <summary>
@@ -747,10 +711,7 @@ protected virtual void OnFindElementCompleted(FindElementEventArgs e)
747711
/// <param name="e">A <see cref="GetShadowRootEventArgs"/> that contains the event data.</param>
748712
protected virtual void OnGettingShadowRoot(GetShadowRootEventArgs e)
749713
{
750-
if (this.GettingShadowRoot != null)
751-
{
752-
this.GettingShadowRoot(this, e);
753-
}
714+
this.GettingShadowRoot?.Invoke(this, e);
754715
}
755716

756717
/// <summary>
@@ -759,10 +720,7 @@ protected virtual void OnGettingShadowRoot(GetShadowRootEventArgs e)
759720
/// <param name="e">A <see cref="GetShadowRootEventArgs"/> that contains the event data.</param>
760721
protected virtual void OnGetShadowRootCompleted(GetShadowRootEventArgs e)
761722
{
762-
if (this.GetShadowRootCompleted != null)
763-
{
764-
this.GetShadowRootCompleted(this, e);
765-
}
723+
this.GetShadowRootCompleted?.Invoke(this, e);
766724
}
767725

768726
/// <summary>
@@ -771,10 +729,7 @@ protected virtual void OnGetShadowRootCompleted(GetShadowRootEventArgs e)
771729
/// <param name="e">A <see cref="WebDriverScriptEventArgs"/> that contains the event data.</param>
772730
protected virtual void OnScriptExecuting(WebDriverScriptEventArgs e)
773731
{
774-
if (this.ScriptExecuting != null)
775-
{
776-
this.ScriptExecuting(this, e);
777-
}
732+
this.ScriptExecuting?.Invoke(this, e);
778733
}
779734

780735
/// <summary>
@@ -783,10 +738,7 @@ protected virtual void OnScriptExecuting(WebDriverScriptEventArgs e)
783738
/// <param name="e">A <see cref="WebDriverScriptEventArgs"/> that contains the event data.</param>
784739
protected virtual void OnScriptExecuted(WebDriverScriptEventArgs e)
785740
{
786-
if (this.ScriptExecuted != null)
787-
{
788-
this.ScriptExecuted(this, e);
789-
}
741+
this.ScriptExecuted?.Invoke(this, e);
790742
}
791743

792744
/// <summary>
@@ -795,10 +747,7 @@ protected virtual void OnScriptExecuted(WebDriverScriptEventArgs e)
795747
/// <param name="e">A <see cref="WebDriverExceptionEventArgs"/> that contains the event data.</param>
796748
protected virtual void OnException(WebDriverExceptionEventArgs e)
797749
{
798-
if (this.ExceptionThrown != null)
799-
{
800-
this.ExceptionThrown(this, e);
801-
}
750+
this.ExceptionThrown?.Invoke(this, e);
802751
}
803752

804753
private static object?[] UnwrapElementArguments(object?[] args)

dotnet/src/support/GlobalSuppressions.cs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@
2727
// "In Project Suppression File".
2828
// You do not need to add suppressions to this file manually.
2929
[assembly: System.CLSCompliant(true)]
30-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "OpenQA.Selenium.Support.UI.ExpectedConditions.#VisibilityOfAllElementsLocatedBy(OpenQA.Selenium.By)", Justification = "Nested generic types is appropriate for this type")]
31-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "OpenQA.Selenium.Support.UI.ExpectedConditions.#VisibilityOfAllElementsLocatedBy(System.Collections.ObjectModel.ReadOnlyCollection`1<OpenQA.Selenium.IWebElement>)", Justification = "Nested generic types is appropriate for this type")]
32-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope = "member", Target = "OpenQA.Selenium.Support.UI.ExpectedConditions.#PresenceOfAllElementsLocatedBy(OpenQA.Selenium.By)", Justification = "Nested generic types is appropriate for this type")]
33-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Scope = "member", Target = "OpenQA.Selenium.Support.PageObjects.PageFactory.#InitElements`1(OpenQA.Selenium.IWebDriver)", Justification = "Page Object pattern enforces IWebDriver in constructor for generic InitElements call.")]
34-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Scope = "member", Target = "OpenQA.Selenium.Support.PageObjects.PageFactory.#InitElements`1(OpenQA.Selenium.IWebDriver,OpenQA.Selenium.Support.PageObjects.IElementLocatorFactory)", Justification = "Page Object pattern enforces IWebDriver in constructor for generic InitElements call.")]
3530
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1020:AvoidNamespacesWithFewTypes", Scope = "namespace", Target = "OpenQA.Selenium.Support.Extensions", Justification = "This namespace will likely grow over time.")]
3631
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "OpenQA.Selenium.Support.Events.EventFiringWebDriver.#Close()", Justification = "Firing event on all execptions, so catching generic Exception is appropriate.")]
3732
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "OpenQA.Selenium.Support.Events.EventFiringWebDriver.#CurrentWindowHandle", Justification = "Firing event on all execptions, so catching generic Exception is appropriate.")]
@@ -73,16 +68,9 @@
7368
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "OpenQA.Selenium.Support.Events.EventFiringWebDriver+EventFiringWebElement.#Text", Justification = "Firing event on all execptions, so catching generic Exception is appropriate.")]
7469
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Scope = "member", Target = "OpenQA.Selenium.Support.UI.DefaultWait`1.#Until`1(System.Func`2<!0,!!0>)", Justification = "Analyzing and handling all exceptions that occur, so catching generic Exception is appropriate.")]
7570
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", MessageId = "1#", Scope = "member", Target = "OpenQA.Selenium.Support.Events.WebDriverNavigationEventArgs.#.ctor(OpenQA.Selenium.IWebDriver,System.String)", Justification = "Using string to preserve user input.")]
76-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings", MessageId = "0#", Scope = "member", Target = "OpenQA.Selenium.Support.UI.ExpectedConditions.#UrlToBe(System.String)", Justification = "Using string to preserve user input.")]
7771
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1056:UriPropertiesShouldNotBeStrings", Scope = "member", Target = "OpenQA.Selenium.Support.Events.WebDriverNavigationEventArgs.#Url", Justification = "Using string to preserve user input.")]
7872
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1065:DoNotRaiseExceptionsInUnexpectedLocations", Scope = "member", Target = "OpenQA.Selenium.Support.UI.SelectElement.#SelectedOption", Justification = "Exception should be thrown in this property.")]
7973
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope = "member", Target = "OpenQA.Selenium.Support.UI.SelectElement.#.ctor(OpenQA.Selenium.IWebElement)", Justification = "WebDriver normalizes strings to lowercase.")]
80-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope = "member", Target = "OpenQA.Selenium.Support.UI.ExpectedConditions.#UrlToBe(System.String)", Justification = "WebDriver normalizes strings to lowercase.")]
81-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Globalization", "CA1308:NormalizeStringsToUppercase", Scope = "member", Target = "OpenQA.Selenium.Support.UI.ExpectedConditions.#UrlContains(System.String)", Justification = "WebDriver normalizes strings to lowercase.")]
82-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "bys", Scope = "member", Target = "OpenQA.Selenium.Support.PageObjects.ByAll.#.ctor(OpenQA.Selenium.By[])", Justification = "Parameter is correctly named")]
83-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "bys", Scope = "member", Target = "OpenQA.Selenium.Support.PageObjects.ByChained.#.ctor(OpenQA.Selenium.By[])", Justification = "Parameter is correctly named")]
84-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "bys", Scope = "member", Target = "OpenQA.Selenium.Support.PageObjects.IElementLocator.#LocateElement(System.Collections.Generic.IEnumerable`1<OpenQA.Selenium.By>)", Justification = "Parameter is correctly named")]
85-
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "bys", Scope = "member", Target = "OpenQA.Selenium.Support.PageObjects.IElementLocator.#LocateElements(System.Collections.Generic.IEnumerable`1<OpenQA.Selenium.By>)", Justification = "Parameter is correctly named")]
8674
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope = "member", Target = "OpenQA.Selenium.Support.Events.EventFiringWebDriver+EventFiringWebElement.#ParentDriver", Justification = "Method must be available for subclasses.")]
8775
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly", MessageId = "IJavaScriptExecutor", Scope = "member", Target = "OpenQA.Selenium.Support.Extensions.WebDriverExtensions.#ExecuteJavaScript`1(OpenQA.Selenium.IWebDriver,System.String,System.Object[])", Justification = "Interface name is correct")]
8876
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA2204:Literals should be spelled correctly", MessageId = "IHasCapabilities", Scope = "member", Target = "OpenQA.Selenium.Support.Extensions.WebDriverExtensions.#TakeScreenshot(OpenQA.Selenium.IWebDriver)", Justification = "Interface name is correct")]

dotnet/src/webdriver/BiDi/BiDi.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using OpenQA.Selenium.BiDi.Json.Converters;
2120
using System;
2221
using System.Collections.Concurrent;
2322
using System.Text.Json;
2423
using System.Text.Json.Serialization;
2524
using System.Threading;
2625
using System.Threading.Tasks;
26+
using OpenQA.Selenium.BiDi.Json.Converters;
2727

2828
namespace OpenQA.Selenium.BiDi;
2929

dotnet/src/webdriver/BiDi/Broker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using OpenQA.Selenium.Internal.Logging;
2120
using System;
2221
using System.Collections.Concurrent;
2322
using System.Collections.Generic;
@@ -26,6 +25,7 @@
2625
using System.Threading;
2726
using System.Threading.Channels;
2827
using System.Threading.Tasks;
28+
using OpenQA.Selenium.Internal.Logging;
2929

3030
namespace OpenQA.Selenium.BiDi;
3131

dotnet/src/webdriver/BiDi/Browser/BrowserModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using OpenQA.Selenium.BiDi.Json.Converters;
2120
using System.Text.Json;
2221
using System.Text.Json.Serialization;
2322
using System.Threading;
2423
using System.Threading.Tasks;
24+
using OpenQA.Selenium.BiDi.Json.Converters;
2525

2626
namespace OpenQA.Selenium.BiDi.Browser;
2727

dotnet/src/webdriver/BiDi/Browser/ClientWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using OpenQA.Selenium.BiDi.Json.Converters;
2120
using System.Text.Json.Serialization;
21+
using OpenQA.Selenium.BiDi.Json.Converters;
2222

2323
namespace OpenQA.Selenium.BiDi.Browser;
2424

dotnet/src/webdriver/BiDi/Browser/ClientWindowInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
// under the License.
1818
// </copyright>
1919

20-
using OpenQA.Selenium.BiDi.Json.Converters;
2120
using System.Text.Json.Serialization;
21+
using OpenQA.Selenium.BiDi.Json.Converters;
2222

2323
namespace OpenQA.Selenium.BiDi.Browser;
2424

dotnet/src/webdriver/BiDi/BrowsingContext/BrowsingContextInputModule.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
// </copyright>
1919

2020
using System;
21+
using System.Collections.Generic;
2122
using System.Threading;
2223
using System.Threading.Tasks;
2324
using OpenQA.Selenium.BiDi.Input;
24-
using System.Collections.Generic;
2525

2626
namespace OpenQA.Selenium.BiDi.BrowsingContext;
2727

0 commit comments

Comments
 (0)