Skip to content

Commit

Permalink
Update version of Selenium.Core (#153)
Browse files Browse the repository at this point in the history
* Update version of Selenium.Core

* Update settings.json

* Update settings.local.json
  • Loading branch information
paveliam authored Dec 5, 2019
1 parent 2fa3f91 commit 81fe09f
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aquality.Selenium.Core" Version="0.2.0" />
<PackageReference Include="Aquality.Selenium.Core" Version="0.2.2" />
<PackageReference Include="NLog" Version="4.6.6" />
<PackageReference Include="Selenium.Support" Version="3.141.0" />
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />
Expand Down
8 changes: 4 additions & 4 deletions Aquality.Selenium/src/Aquality.Selenium/Browsers/Browser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public class Browser : IApplication
public Browser(RemoteWebDriver webDriver, IServiceProvider serviceProvider)
{
Driver = webDriver;
Logger = serviceProvider.GetRequiredService<LocalizationLogger>();
LocalizationManager = serviceProvider.GetRequiredService<LocalizationManager>();
Logger = serviceProvider.GetRequiredService<ILocalizedLogger>();
LocalizationManager = serviceProvider.GetRequiredService<ILocalizationManager>();
browserProfile = serviceProvider.GetRequiredService<IBrowserProfile>();
conditionalWait = serviceProvider.GetRequiredService<ConditionalWait>();
var timeoutConfiguration = serviceProvider.GetRequiredService<ITimeoutConfiguration>();
Expand All @@ -39,9 +39,9 @@ public Browser(RemoteWebDriver webDriver, IServiceProvider serviceProvider)
SetScriptTimeout(timeoutConfiguration.Script);
}

private LocalizationLogger Logger { get; }
private ILocalizedLogger Logger { get; }

private LocalizationManager LocalizationManager { get; }
private ILocalizationManager LocalizationManager { get; }

/// <summary>
/// Gets instance of Selenium WebDriver.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Aquality.Selenium.Browsers
/// <summary>
/// Controls browser instance creation.
/// </summary>
public class BrowserManager : ApplicationManager<BrowserManager, Browser>
public class BrowserManager : ApplicationManager<Browser>
{
private static readonly ThreadLocal<IBrowserFactory> BrowserFactoryContainer = new ThreadLocal<IBrowserFactory>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal BrowserNavigation(RemoteWebDriver driver)
this.driver = driver;
}

private LocalizationLogger Logger => BrowserManager.GetRequiredService<LocalizationLogger>();
private ILocalizedLogger Logger => BrowserManager.GetRequiredService<ILocalizedLogger>();

/// <summary>
/// Navigates back.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Aquality.Selenium.Elements.Actions
/// </summary>
public class CheckBoxJsActions : JsActions
{
public CheckBoxJsActions(IElement element, string elementType, LocalizationLogger logger, IBrowserProfile browserProfile)
public CheckBoxJsActions(IElement element, string elementType, ILocalizedLogger logger, IBrowserProfile browserProfile)
: base(element, elementType, logger, browserProfile)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Aquality.Selenium.Elements.Actions
/// </summary>
public class ComboBoxJsActions : JsActions
{
public ComboBoxJsActions(IElement element, string elementType, LocalizationLogger logger, IBrowserProfile browserProfile)
public ComboBoxJsActions(IElement element, string elementType, ILocalizedLogger logger, IBrowserProfile browserProfile)
: base(element, elementType, logger, browserProfile)
{
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class JsActions
private readonly string elementType;
private readonly IBrowserProfile browserProfile;

public JsActions(IElement element, string elementType, LocalizationLogger logger, IBrowserProfile browserProfile)
public JsActions(IElement element, string elementType, ILocalizedLogger logger, IBrowserProfile browserProfile)
{
this.element = element;
this.elementType = elementType;
Expand All @@ -29,7 +29,7 @@ public JsActions(IElement element, string elementType, LocalizationLogger logger

private Browser Browser => BrowserManager.Browser;

protected LocalizationLogger Logger { get; }
protected ILocalizedLogger Logger { get; }

/// <summary>
/// Perfroms click on element and waits for page is loaded.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ public class MouseActions
{
private readonly IElement element;
private readonly string elementType;
private readonly LocalizationLogger logger;
private readonly ILocalizedLogger logger;
private readonly ElementActionRetrier elementActionsRetrier;

public MouseActions(IElement element, string elementType, LocalizationLogger logger, ElementActionRetrier elementActionsRetrier)
public MouseActions(IElement element, string elementType, ILocalizedLogger logger, ElementActionRetrier elementActionsRetrier)
{
this.element = element;
this.elementType = elementType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public bool IsChecked
}
}

public new CheckBoxJsActions JsActions => new CheckBoxJsActions(this, ElementType, LocalizationLogger, BrowserProfile);
public new CheckBoxJsActions JsActions => new CheckBoxJsActions(this, ElementType, LocalizedLogger, BrowserProfile);

public void Check()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public IList<string> Values
}
}

public new ComboBoxJsActions JsActions => new ComboBoxJsActions(this, ElementType, LocalizationLogger, BrowserProfile);
public new ComboBoxJsActions JsActions => new ComboBoxJsActions(this, ElementType, LocalizedLogger, BrowserProfile);

public void SelectByContainingText(string text)
{
Expand Down
8 changes: 4 additions & 4 deletions Aquality.Selenium/src/Aquality.Selenium/Elements/Element.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ protected Element(By locator, string name, ElementState state) : base(locator, n

protected IBrowserProfile BrowserProfile => BrowserManager.GetRequiredService<IBrowserProfile>();

public JsActions JsActions => new JsActions(this, ElementType, LocalizationLogger, BrowserProfile);
public JsActions JsActions => new JsActions(this, ElementType, LocalizedLogger, BrowserProfile);

public MouseActions MouseActions => new MouseActions(this, ElementType, LocalizationLogger, ActionRetrier);
public MouseActions MouseActions => new MouseActions(this, ElementType, LocalizedLogger, ActionRetrier);

private Browser Browser => (Browser)Application;

Expand All @@ -44,9 +44,9 @@ protected Element(By locator, string name, ElementState state) : base(locator, n

protected override CoreElementFinder Finder => BrowserManager.GetRequiredService<CoreElementFinder>();

protected override LocalizationLogger LocalizationLogger => BrowserManager.GetRequiredService<LocalizationLogger>();
protected override ILocalizedLogger LocalizedLogger => BrowserManager.GetRequiredService<ILocalizedLogger>();

protected LocalizationManager LocalizationManager => BrowserManager.GetRequiredService<LocalizationManager>();
protected ILocalizationManager LocalizationManager => BrowserManager.GetRequiredService<ILocalizationManager>();

protected override ConditionalWait ConditionalWait => BrowserManager.GetRequiredService<ConditionalWait>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespace Aquality.Selenium.Elements
/// </summary>
public class ElementFactory : CoreFactory, IElementFactory
{
public ElementFactory(ConditionalWait conditionalWait, IElementFinder elementFinder, LocalizationManager localizationManager)
public ElementFactory(ConditionalWait conditionalWait, IElementFinder elementFinder, ILocalizationManager localizationManager)
: base(conditionalWait, elementFinder, localizationManager)
{
}
Expand Down
2 changes: 1 addition & 1 deletion Aquality.Selenium/src/Aquality.Selenium/Forms/Form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ protected Form(By locator, string name)
/// Instance of logger <see cref="Logging.Logger">
/// </summary>
/// <value>Logger instance.</value>
protected LocalizationLogger Logger => BrowserManager.GetRequiredService<LocalizationLogger>();
protected ILocalizedLogger Logger => BrowserManager.GetRequiredService<ILocalizedLogger>();

/// <summary>
/// Element factory <see cref="IElementFactory">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@
"logger": {
"language": "en"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@
"logger": {
"language": "en"
}
}
}

0 comments on commit 81fe09f

Please sign in to comment.