diff --git a/Aquality.Selenium/src/Aquality.Selenium/Configurations/RetryConfiguration.cs b/Aquality.Selenium/src/Aquality.Selenium/Configurations/RetryConfiguration.cs index f5e9a57e..3ba3de94 100644 --- a/Aquality.Selenium/src/Aquality.Selenium/Configurations/RetryConfiguration.cs +++ b/Aquality.Selenium/src/Aquality.Selenium/Configurations/RetryConfiguration.cs @@ -24,7 +24,7 @@ public RetryConfiguration(JsonFile settingsFile) private int GetIntFromSettings(string name) { - return settingsFile.GetValue($".retry.{name}");; + return settingsFile.GetValue($".retry.{name}"); } public int Number { get; } diff --git a/Aquality.Selenium/src/Aquality.Selenium/Configurations/WebDriverSettings/DriverSettings.cs b/Aquality.Selenium/src/Aquality.Selenium/Configurations/WebDriverSettings/DriverSettings.cs index b0808896..47fe24ab 100644 --- a/Aquality.Selenium/src/Aquality.Selenium/Configurations/WebDriverSettings/DriverSettings.cs +++ b/Aquality.Selenium/src/Aquality.Selenium/Configurations/WebDriverSettings/DriverSettings.cs @@ -61,14 +61,14 @@ public virtual string DownloadDir protected void SetCapabilities(DriverOptions options, Action addCapabilityMethod = null) { - foreach(var capability in BrowserCapabilities) + foreach (var capability in BrowserCapabilities) { try { var defaultAddCapabilityMethod = addCapabilityMethod ?? options.AddAdditionalCapability; defaultAddCapabilityMethod(capability.Key, capability.Value); } - catch(ArgumentException exception) + catch (ArgumentException exception) { if(exception.Message.StartsWith("There is already an option")) { @@ -76,7 +76,7 @@ protected void SetCapabilities(DriverOptions options, Action add } else { - throw exception; + throw; } } } diff --git a/Aquality.Selenium/src/Aquality.Selenium/Elements/ElementSupplier.cs b/Aquality.Selenium/src/Aquality.Selenium/Elements/ElementSupplier.cs index a7eee5f1..d8fc1aae 100644 --- a/Aquality.Selenium/src/Aquality.Selenium/Elements/ElementSupplier.cs +++ b/Aquality.Selenium/src/Aquality.Selenium/Elements/ElementSupplier.cs @@ -11,5 +11,5 @@ namespace Aquality.Selenium.Elements /// Element name /// Element state /// Element instance of type T - public delegate T ElementSupplier(By locator, string name, ElementState state) where T : IElement; + public delegate T ElementSupplier(By locator, string name, ElementState state) where T : IElement; } diff --git a/Aquality.Selenium/src/Aquality.Selenium/Utilities/ElementActionRetrier.cs b/Aquality.Selenium/src/Aquality.Selenium/Utilities/ElementActionRetrier.cs index d3b2b4ac..19376f43 100644 --- a/Aquality.Selenium/src/Aquality.Selenium/Utilities/ElementActionRetrier.cs +++ b/Aquality.Selenium/src/Aquality.Selenium/Utilities/ElementActionRetrier.cs @@ -8,7 +8,7 @@ namespace Aquality.Selenium.Utilities /// /// Retries an action or function when or occures. /// - internal sealed class ElementActionRetrier + internal static class ElementActionRetrier { /// /// Retries the action when or occures. diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6ffb3761..3d20d757 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -64,7 +64,6 @@ steps: repositoryName: 'aquality-automation/aquality-selenium-dotnet' action: 'create' tag: 'v$(GitVersion.NuGetVersion)' - title: 'v$(GitVersion.NuGetVersion)' - tagSource: 'auto' + tagSource: 'manual' isPreRelease: contains(variables['GitVersion.NuGetVersion'], '-') condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master')) \ No newline at end of file