Skip to content

Commit 81fe09f

Browse files
authored
Update version of Selenium.Core (#153)
* Update version of Selenium.Core * Update settings.json * Update settings.local.json
1 parent 2fa3f91 commit 81fe09f

File tree

15 files changed

+23
-23
lines changed

15 files changed

+23
-23
lines changed

Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
</ItemGroup>
6060

6161
<ItemGroup>
62-
<PackageReference Include="Aquality.Selenium.Core" Version="0.2.0" />
62+
<PackageReference Include="Aquality.Selenium.Core" Version="0.2.2" />
6363
<PackageReference Include="NLog" Version="4.6.6" />
6464
<PackageReference Include="Selenium.Support" Version="3.141.0" />
6565
<PackageReference Include="Selenium.WebDriver" Version="3.141.0" />

Aquality.Selenium/src/Aquality.Selenium/Browsers/Browser.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ public class Browser : IApplication
2929
public Browser(RemoteWebDriver webDriver, IServiceProvider serviceProvider)
3030
{
3131
Driver = webDriver;
32-
Logger = serviceProvider.GetRequiredService<LocalizationLogger>();
33-
LocalizationManager = serviceProvider.GetRequiredService<LocalizationManager>();
32+
Logger = serviceProvider.GetRequiredService<ILocalizedLogger>();
33+
LocalizationManager = serviceProvider.GetRequiredService<ILocalizationManager>();
3434
browserProfile = serviceProvider.GetRequiredService<IBrowserProfile>();
3535
conditionalWait = serviceProvider.GetRequiredService<ConditionalWait>();
3636
var timeoutConfiguration = serviceProvider.GetRequiredService<ITimeoutConfiguration>();
@@ -39,9 +39,9 @@ public Browser(RemoteWebDriver webDriver, IServiceProvider serviceProvider)
3939
SetScriptTimeout(timeoutConfiguration.Script);
4040
}
4141

42-
private LocalizationLogger Logger { get; }
42+
private ILocalizedLogger Logger { get; }
4343

44-
private LocalizationManager LocalizationManager { get; }
44+
private ILocalizationManager LocalizationManager { get; }
4545

4646
/// <summary>
4747
/// Gets instance of Selenium WebDriver.

Aquality.Selenium/src/Aquality.Selenium/Browsers/BrowserManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace Aquality.Selenium.Browsers
1717
/// <summary>
1818
/// Controls browser instance creation.
1919
/// </summary>
20-
public class BrowserManager : ApplicationManager<BrowserManager, Browser>
20+
public class BrowserManager : ApplicationManager<Browser>
2121
{
2222
private static readonly ThreadLocal<IBrowserFactory> BrowserFactoryContainer = new ThreadLocal<IBrowserFactory>();
2323

Aquality.Selenium/src/Aquality.Selenium/Browsers/BrowserNavigation.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ internal BrowserNavigation(RemoteWebDriver driver)
1717
this.driver = driver;
1818
}
1919

20-
private LocalizationLogger Logger => BrowserManager.GetRequiredService<LocalizationLogger>();
20+
private ILocalizedLogger Logger => BrowserManager.GetRequiredService<ILocalizedLogger>();
2121

2222
/// <summary>
2323
/// Navigates back.

Aquality.Selenium/src/Aquality.Selenium/Elements/Actions/CheckBoxJsActions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Aquality.Selenium.Elements.Actions
1010
/// </summary>
1111
public class CheckBoxJsActions : JsActions
1212
{
13-
public CheckBoxJsActions(IElement element, string elementType, LocalizationLogger logger, IBrowserProfile browserProfile)
13+
public CheckBoxJsActions(IElement element, string elementType, ILocalizedLogger logger, IBrowserProfile browserProfile)
1414
: base(element, elementType, logger, browserProfile)
1515
{
1616
}

Aquality.Selenium/src/Aquality.Selenium/Elements/Actions/ComboBoxJsActions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Aquality.Selenium.Elements.Actions
1212
/// </summary>
1313
public class ComboBoxJsActions : JsActions
1414
{
15-
public ComboBoxJsActions(IElement element, string elementType, LocalizationLogger logger, IBrowserProfile browserProfile)
15+
public ComboBoxJsActions(IElement element, string elementType, ILocalizedLogger logger, IBrowserProfile browserProfile)
1616
: base(element, elementType, logger, browserProfile)
1717
{
1818
}

Aquality.Selenium/src/Aquality.Selenium/Elements/Actions/JsActions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class JsActions
1919
private readonly string elementType;
2020
private readonly IBrowserProfile browserProfile;
2121

22-
public JsActions(IElement element, string elementType, LocalizationLogger logger, IBrowserProfile browserProfile)
22+
public JsActions(IElement element, string elementType, ILocalizedLogger logger, IBrowserProfile browserProfile)
2323
{
2424
this.element = element;
2525
this.elementType = elementType;
@@ -29,7 +29,7 @@ public JsActions(IElement element, string elementType, LocalizationLogger logger
2929

3030
private Browser Browser => BrowserManager.Browser;
3131

32-
protected LocalizationLogger Logger { get; }
32+
protected ILocalizedLogger Logger { get; }
3333

3434
/// <summary>
3535
/// Perfroms click on element and waits for page is loaded.

Aquality.Selenium/src/Aquality.Selenium/Elements/Actions/MouseActions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ public class MouseActions
1717
{
1818
private readonly IElement element;
1919
private readonly string elementType;
20-
private readonly LocalizationLogger logger;
20+
private readonly ILocalizedLogger logger;
2121
private readonly ElementActionRetrier elementActionsRetrier;
2222

23-
public MouseActions(IElement element, string elementType, LocalizationLogger logger, ElementActionRetrier elementActionsRetrier)
23+
public MouseActions(IElement element, string elementType, ILocalizedLogger logger, ElementActionRetrier elementActionsRetrier)
2424
{
2525
this.element = element;
2626
this.elementType = elementType;

Aquality.Selenium/src/Aquality.Selenium/Elements/CheckBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public bool IsChecked
2525
}
2626
}
2727

28-
public new CheckBoxJsActions JsActions => new CheckBoxJsActions(this, ElementType, LocalizationLogger, BrowserProfile);
28+
public new CheckBoxJsActions JsActions => new CheckBoxJsActions(this, ElementType, LocalizedLogger, BrowserProfile);
2929

3030
public void Check()
3131
{

Aquality.Selenium/src/Aquality.Selenium/Elements/ComboBox.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public IList<string> Values
4141
}
4242
}
4343

44-
public new ComboBoxJsActions JsActions => new ComboBoxJsActions(this, ElementType, LocalizationLogger, BrowserProfile);
44+
public new ComboBoxJsActions JsActions => new ComboBoxJsActions(this, ElementType, LocalizedLogger, BrowserProfile);
4545

4646
public void SelectByContainingText(string text)
4747
{

0 commit comments

Comments
 (0)