Skip to content

Commit

Permalink
Remove redundant qualifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmcroft committed Mar 12, 2024
1 parent 6968a56 commit d0691c3
Show file tree
Hide file tree
Showing 117 changed files with 213 additions and 213 deletions.
4 changes: 2 additions & 2 deletions src/Legerity.Android/Elements/AndroidElementWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Legerity.Android.Elements;

using System;

using Legerity.Exceptions;
using Exceptions;
using OpenQA.Selenium.Support.UI;

/// <summary>
Expand Down Expand Up @@ -97,4 +97,4 @@ protected void VerifyDriverElementsShown(By locator, TimeSpan? timeout)
wait.Until(driver => driver.FindElements(locator).Count != 0);
}
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Android/Elements/Core/Button.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.Android.Elements.Core;

using Legerity.Android.Elements;
using Elements;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core Android Button control.
Expand Down Expand Up @@ -31,4 +31,4 @@ public static implicit operator Button(WebElement element)
{
return new Button(element);
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Android/Elements/Core/View.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.Android.Elements.Core;

using Legerity.Android.Elements;
using Elements;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core Android View base control.
Expand Down Expand Up @@ -31,4 +31,4 @@ public static implicit operator View(WebElement element)
{
return new View(element);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.Android.Extensions;

using System;
using Legerity.Android.Elements;
using Elements;
using OpenQA.Selenium.Support.UI;

/// <summary>
Expand Down Expand Up @@ -85,4 +85,4 @@ public static TResult WaitUntil<TElementWrapper, TResult>(
return WaitUntil(element, condition, timeout, retries - 1);
}
}
}
}
16 changes: 8 additions & 8 deletions src/Legerity.Core/AppManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ namespace Legerity;

using System;
using System.Collections.Generic;
using Legerity.Android;
using Legerity.Exceptions;
using Legerity.Extensions;
using Legerity.Helpers;
using Legerity.IOS;
using Legerity.Web;
using Legerity.Windows;
using Android;
using Exceptions;
using Extensions;
using Helpers;
using IOS;
using Web;
using Windows;
using Legerity.Windows.Helpers;
using OpenQA.Selenium.Appium.Android;
using OpenQA.Selenium.Appium.iOS;
Expand Down Expand Up @@ -291,4 +291,4 @@ private static void VerifyAppDriver(WebDriver app, AppManagerOptions opts)
// Set implicit timeout to 2 seconds to make element search to retry every 500 ms for at most three times.
app.Manage().Timeouts().ImplicitWait = opts.ImplicitWait;
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Core/ElementWrapper{TElement}.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Legerity;

using System;

using Legerity.Exceptions;
using Exceptions;
using OpenQA.Selenium.Support.UI;

/// <summary>
Expand Down Expand Up @@ -185,4 +185,4 @@ public void VerifyElementsShown(By locator, TimeSpan? timeout)
wait.Until(driver => driver.FindElements(locator).Count != 0);
}
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Core/Extensions/PageExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.Extensions;

using System;
using Legerity.Pages;
using Pages;
using OpenQA.Selenium.Support.UI;

/// <summary>
Expand Down Expand Up @@ -86,4 +86,4 @@ public static TPage WaitUntil<TPage, TResult>(

return page;
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Core/Helpers/AppiumServerHelper.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.Helpers;

using System;
using Legerity.Exceptions;
using Exceptions;
using OpenQA.Selenium.Appium.Service;

/// <summary>
Expand Down Expand Up @@ -49,4 +49,4 @@ public static void Stop()
{
}
}
}
}
2 changes: 1 addition & 1 deletion src/Legerity.Core/Helpers/WaitUntilConditions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.Helpers;

using System;
using Legerity.Pages;
using Pages;

/// <summary>
/// Defines a set of conditions that can be used with the WaitUntil methods of elements and pages.
Expand Down
6 changes: 3 additions & 3 deletions src/Legerity.Core/Pages/BasePage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ namespace Legerity.Pages;
using System;
using System.Collections.ObjectModel;
using System.Linq;
using Legerity.Exceptions;
using Legerity.Extensions;
using Exceptions;
using Extensions;
using OpenQA.Selenium.Appium.Android;
using OpenQA.Selenium.Appium.iOS;
using OpenQA.Selenium.Appium.Windows;
Expand Down Expand Up @@ -305,4 +305,4 @@ private static void AttemptWaitForDriverElement(By locator, TimeSpan timeout, IW
var wait = new WebDriverWait(appDriver, timeout);
wait.Until(driver => driver.FindElement(locator) != null);
}
}
}
2 changes: 1 addition & 1 deletion src/Legerity.Core/Windows/Helpers/WinAppDriverHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Legerity.Windows.Helpers;
using System.Diagnostics;
using System.IO;
using System.Linq;
using Legerity.Windows.Exceptions;
using Exceptions;

/// <summary>
/// Defines a helper class for the WinAppDriver.
Expand Down
2 changes: 1 addition & 1 deletion src/Legerity.Core/Windows/WindowsAppManagerOptions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.Windows;

using System.Collections.Generic;
using Legerity.Windows.Helpers;
using Helpers;
using OpenQA.Selenium.Appium;

/// <summary>
Expand Down
4 changes: 2 additions & 2 deletions src/Legerity.IOS/Elements/Core/Button.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.IOS.Elements.Core;

using Legerity.IOS.Extensions;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core iOS Button control.
Expand Down Expand Up @@ -37,4 +37,4 @@ public static implicit operator Button(WebElement element)
{
return new Button(element);
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.IOS/Elements/Core/Label.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.IOS.Elements.Core;

using Legerity.IOS.Extensions;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core iOS Label control.
Expand Down Expand Up @@ -37,4 +37,4 @@ public static implicit operator Label(WebElement element)
{
return new Label(element);
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.IOS/Elements/Core/ProgressView.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.IOS.Elements.Core;

using Legerity.IOS.Extensions;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core iOS ProgressView control.
Expand Down Expand Up @@ -37,4 +37,4 @@ public static implicit operator ProgressView(WebElement element)
{
return new ProgressView(element);
}
}
}
2 changes: 1 addition & 1 deletion src/Legerity.IOS/Elements/Core/Slider.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.IOS.Elements.Core;

using System;
using Legerity.IOS.Extensions;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core iOS Slider control.
Expand Down
4 changes: 2 additions & 2 deletions src/Legerity.IOS/Elements/Core/Switch.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.IOS.Elements.Core;

using Legerity.IOS.Extensions;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core iOS Switch control.
Expand Down Expand Up @@ -71,4 +71,4 @@ public virtual void ToggleOff()

Click();
}
}
}
6 changes: 3 additions & 3 deletions src/Legerity.IOS/Elements/Core/TextField.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.IOS.Elements.Core;

using Legerity.IOS.Elements;
using Legerity.IOS.Extensions;
using Elements;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the core iOS TextField control.
Expand Down Expand Up @@ -80,4 +80,4 @@ public virtual void ClearText()
Click();
Element.Clear();
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.IOS/Elements/IOSElementWrapper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Legerity.IOS.Elements;

using System;

using Legerity.Exceptions;
using Exceptions;
using OpenQA.Selenium.Support.UI;

/// <summary>
Expand Down Expand Up @@ -97,4 +97,4 @@ protected void VerifyDriverElementsShown(By locator, TimeSpan? timeout)
wait.Until(driver => driver.FindElements(locator).Count != 0);
}
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.IOS/Extensions/IOSElementWrapperExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.IOS.Extensions;

using System;
using Legerity.IOS.Elements;
using Elements;
using OpenQA.Selenium.Support.UI;

/// <summary>
Expand Down Expand Up @@ -85,4 +85,4 @@ public static TResult WaitUntil<TElementWrapper, TResult>(
return WaitUntil(element, condition, timeout, retries - 1);
}
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.MADE/DropDownList.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.Windows.Elements.MADE;

using Legerity.Exceptions;
using Legerity.Windows.Elements.Core;
using Core;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the MADE.NET UWP DropDownList control.
Expand Down Expand Up @@ -109,4 +109,4 @@ public virtual bool IsDropDownOpen()

return isVisible;
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.MADE/InputValidator.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.Windows.Elements.MADE;

using Legerity.Windows.Elements.Core;
using Core;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the MADE.NET UWP InputValidator control.
Expand Down Expand Up @@ -77,4 +77,4 @@ public virtual string FeedbackMessage()

return message;
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Telerik.Uwp/RadAutoCompleteBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Legerity.Windows.Elements.Telerik;

using System;
using Legerity.Exceptions;
using Legerity.Windows.Elements.Core;
using Core;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the Telerik UWP RadAutoCompleteBox control.
Expand Down Expand Up @@ -117,4 +117,4 @@ public virtual void SetText(string value)
{
TextBox.SetText(value);
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Telerik.Uwp/RadBulletGraph.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Legerity.Windows.Elements.Telerik;

using Legerity.Windows.Extensions;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the Telerik UWP RadBulletGraph control.
Expand Down Expand Up @@ -49,4 +49,4 @@ public static implicit operator RadBulletGraph(WebElement element)
{
return new RadBulletGraph(element);
}
}
}
4 changes: 2 additions & 2 deletions src/Legerity.Telerik.Uwp/RadNumericBox.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Legerity.Windows.Elements.Telerik;

using System;
using Legerity.Windows.Elements.Core;
using Legerity.Windows.Extensions;
using Core;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the Telerik UWP RadNumericBox control.
Expand Down
2 changes: 1 addition & 1 deletion src/Legerity.WCT/BladeView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Legerity.Windows.Elements.WCT;

using System.Collections.Generic;
using System.Linq;
using Legerity.Windows.Extensions;
using Extensions;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the Windows Community Toolkit BladeView control.
Expand Down
4 changes: 2 additions & 2 deletions src/Legerity.WCT/BladeViewItem.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Legerity.Windows.Elements.WCT;

using System;
using Legerity.Windows.Elements.Core;
using Core;

/// <summary>
/// Defines a <see cref="WebElement"/> wrapper for the Windows Community Toolkit BladeViewItem control.
Expand Down Expand Up @@ -84,4 +84,4 @@ public virtual void Close()
{
CloseButton.Click();
}
}
}
Loading

0 comments on commit d0691c3

Please sign in to comment.