Skip to content

Commit c45cc40

Browse files
authored
Update Selenium version to v4.35.0 +semver: feature (#273)
1 parent 84e2ae6 commit c45cc40

File tree

11 files changed

+19
-39
lines changed

11 files changed

+19
-39
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</ItemGroup>
9292

9393
<ItemGroup>
94-
<PackageReference Include="Aquality.Selenium.Core" Version="3.4.0" />
94+
<PackageReference Include="Aquality.Selenium.Core" Version="3.5.0" />
9595
<PackageReference Include="WebDriverManager" Version="2.17.6" />
9696
</ItemGroup>
9797

Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.xml

Lines changed: 0 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Aquality.Selenium/src/Aquality.Selenium/Browsers/DevToolsHandling.cs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ public DevToolsSession GetDevToolsSession()
7474
return session;
7575
}
7676

77-
/// <summary>
78-
/// Creates a session to communicate with a browser using the Chromium Developer Tools debugging protocol.
79-
/// </summary>
80-
/// <param name="protocolVersion">The version of the Chromium Developer Tools protocol to use.
81-
/// Defaults to autodetect the protocol version for <see cref="ChromiumDriver"/>, V85 for FirefoxDriver.</param>
82-
/// <returns>The active session to use to communicate with the Chromium Developer Tools debugging protocol.</returns>
83-
[Obsolete("Use GetDevToolsSession(DevToolsOptions options)")]
84-
public DevToolsSession GetDevToolsSession(int protocolVersion)
85-
{
86-
Logger.Info("loc.browser.devtools.session.get", protocolVersion);
87-
var session = devToolsProvider.GetDevToolsSession(protocolVersion);
88-
wasDevToolsSessionClosed = false;
89-
return session;
90-
}
91-
9277
/// <summary>
9378
/// Creates a session to communicate with a browser using the Chromium Developer Tools debugging protocol.
9479
/// </summary>

Aquality.Selenium/tests/Aquality.Selenium.Tests/Aquality.Selenium.Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
</ItemGroup>
3030

3131
<ItemGroup>
32-
<PackageReference Include="nunit" Version="4.3.2" />
33-
<PackageReference Include="NUnit3TestAdapter" Version="5.0.0">
32+
<PackageReference Include="nunit" Version="4.4.0" />
33+
<PackageReference Include="NUnit3TestAdapter" Version="5.1.0">
3434
<PrivateAssets>all</PrivateAssets>
3535
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
3636
</PackageReference>

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/BrowserTabsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public void Should_BePossibleTo_SwitchToNewByHandle_AndClose()
142142
});
143143
}
144144

145-
[Test]
145+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
146146
public void Should_BePossibleTo_SwitchToNewByIndex()
147147
{
148148
CheckSwitchingBy(3, () =>

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/BrowserTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public void Should_BePossibleTo_ExecuteJavaScript()
100100
Assert.That(currentUrl, Is.EqualTo(dynamicContentForm.Url));
101101
}
102102

103-
[Test]
103+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
104104
public void Should_BePossibleTo_ExecuteAsyncJavaScript()
105105
{
106106
const int expectedDurationInSeconds = 1;
@@ -226,7 +226,7 @@ public void Should_BePossibleTo_GetBrowserName()
226226
Assert.That(AqualityServices.Browser.BrowserName, Is.EqualTo(browserName));
227227
}
228228

229-
[Test]
229+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
230230
public void Should_BePossibleTo_SetImplicitWait()
231231
{
232232
var browser = AqualityServices.Browser;

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/DevToolsEmulationTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Aquality.Selenium.Tests.Integration.TestApp.TheInternet.Forms;
66
using NUnit.Framework;
77
using OpenQA.Selenium;
8-
using OpenQA.Selenium.DevTools.V136.Emulation;
8+
using OpenQA.Selenium.DevTools.V139.Emulation;
99
using System;
1010
using System.Collections.Generic;
1111

@@ -59,11 +59,11 @@ public void Should_BePossibleTo_SetAndClearDeviceMetricsOverride_WithVersionSpec
5959
{
6060
void setAction(long width, long height, bool isMobile, double scaleFactor)
6161
{
62-
var parameters = new OpenQA.Selenium.DevTools.V136.Emulation.SetDeviceMetricsOverrideCommandSettings
62+
var parameters = new OpenQA.Selenium.DevTools.V138.Emulation.SetDeviceMetricsOverrideCommandSettings
6363
{
64-
DisplayFeature = new OpenQA.Selenium.DevTools.V136.Emulation.DisplayFeature
64+
DisplayFeature = new OpenQA.Selenium.DevTools.V138.Emulation.DisplayFeature
6565
{
66-
Orientation = OpenQA.Selenium.DevTools.V136.Emulation.DisplayFeatureOrientationValues.Horizontal
66+
Orientation = OpenQA.Selenium.DevTools.V138.Emulation.DisplayFeatureOrientationValues.Horizontal
6767
},
6868
Width = width,
6969
Height = height,
@@ -93,7 +93,7 @@ private static void CheckDeviceMetricsOverride(Action<long, long, bool, double>
9393
Assert.That(getWindowHeight(), Is.EqualTo(initialValue), "Browser height should match to initial value after clear");
9494
}
9595

96-
[Test]
96+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
9797
public void Should_BePossibleTo_SetAndClearGeoLocationOverride()
9898
{
9999
CheckGeolocationOverride(
@@ -102,7 +102,7 @@ public void Should_BePossibleTo_SetAndClearGeoLocationOverride()
102102
() => Assert.DoesNotThrowAsync(async () => await DevTools.ClearGeolocationOverride(), "Should be possible to clear geoLocation"));
103103
}
104104

105-
[Test]
105+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
106106
public void Should_BePossibleTo_SetAndClearGeoLocationOverride_ByExecutingCdpCommand()
107107
{
108108
CheckGeolocationOverride(
@@ -144,7 +144,7 @@ private static void CheckGeolocationOverride(Action<double?, double?, double?> s
144144
Assert.That(locationForm.Longitude, Is.EqualTo(defaultLongitude), "Longitude should match to default");
145145
}
146146

147-
[Test]
147+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
148148
public void Should_BePossibleTo_SetUserAgentAndLanguageOverride()
149149
{
150150
var defaultLanguage = new BrowserLanguageForm().Open().Value;

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/Elements/MultiChoiceBoxTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public void Should_BePossibleTo_SelectAll()
3434
Assert.That(selectMultipleForm.ValuesFromResult, Is.EqualTo(selected));
3535
}
3636

37-
[Test]
37+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
3838
public void Should_BePossibleTo_DeselectByValue()
3939
{
4040
var valuesToRemove = new List<string> { "volvo", "saab" };

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/HiddenElementsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void Should_BePossibleTo_CheckThatHiddenElementsExist(
4949
});
5050
}
5151

52-
[Test]
52+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
5353
public void Should_BePossibleTo_CheckThatHiddenElementsNotDisplayed(
5454
[ValueSource(nameof(ElementListProviders))] Func<ElementState, ElementsCount, IList<ILabel>> elementListProvider)
5555
{

Aquality.Selenium/tests/Aquality.Selenium.Tests/Integration/ImageLocatorTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ internal class ImageLocatorTests : UITest
1111
{
1212
private readonly BrokenImagesForm form = new();
1313

14-
[Test]
14+
[Test, Category(RetriesGroup), Retry(RetriesCount)]
1515
public void Should_BePossibleTo_FindByImage()
1616
{
1717
new CheckBoxesForm().Open();

0 commit comments

Comments
 (0)