Skip to content

Commit 34ffd20

Browse files
authored
Bump package versions to newest everything (most importantly: newest … (#144)
* Bump package versions to newest everything (most importantly: newest Selenium.) Resolve deprecations and changes in newest Selenium. * Remove errant diff file
1 parent ca072c2 commit 34ffd20

File tree

7 files changed

+17
-37
lines changed

7 files changed

+17
-37
lines changed

Examples/IntelliTect.TestTools.Selenate.Examples/ComplexScenarios.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public ComplexScenarios()
1515
private readonly EditorPage _Editor;
1616
private readonly SliderPage _Slider;
1717

18-
[Fact]
18+
[Fact(Skip="This test relies on a page that appears to requires a license now.")]
1919
public void ComplexWait()
2020
{
2121
DriverHandler.NavigateToPage("https://the-internet.herokuapp.com/tinymce");

Examples/IntelliTect.TestTools.Selenate.Examples/IntelliTect.TestTools.Selenate.Examples.csproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<Nullable>enable</Nullable>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -13,16 +13,16 @@
1313
<PackageReference Include="IntelliTect.Analyzers" Version="0.2.0">
1414
<PrivateAssets>all</PrivateAssets>
1515
</PackageReference>
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
17-
<PackageReference Include="Selenium.Support" Version="4.17.0" />
18-
<PackageReference Include="Selenium.WebDriver" Version="4.17.0" />
19-
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="123.0.6312.8600" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
17+
<PackageReference Include="Selenium.Support" Version="4.33.0" />
18+
<PackageReference Include="Selenium.WebDriver" Version="4.33.0" />
19+
<PackageReference Include="Selenium.WebDriver.ChromeDriver" Version="137.0.7151.11900" />
2020
<PackageReference Include="xunit" Version="2.9.3" />
2121
<PackageReference Include="coverlet.collector" Version="6.0.4">
2222
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2323
<PrivateAssets>all</PrivateAssets>
2424
</PackageReference>
25-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
25+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.1">
2626
<PrivateAssets>all</PrivateAssets>
2727
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2828
</PackageReference>

IntelliTect.TestTools.Selenate.Tests/IntelliTect.TestTools.Selenate.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<TargetFramework>net8.0</TargetFramework>
55
<IsPackable>false</IsPackable>
66
<Nullable>enable</Nullable>
77
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
@@ -13,15 +13,15 @@
1313
<PackageReference Include="IntelliTect.Analyzers" Version="0.2.0">
1414
<PrivateAssets>all</PrivateAssets>
1515
</PackageReference>
16-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
16+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.14.1" />
1717
<PackageReference Include="Moq" Version="4.20.72" />
18-
<PackageReference Include="Selenium.WebDriver" Version="4.13.1" />
18+
<PackageReference Include="Selenium.WebDriver" Version="4.33.0" />
1919
<PackageReference Include="xunit" Version="2.9.3" />
2020
<PackageReference Include="coverlet.collector" Version="6.0.4">
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
<PrivateAssets>all</PrivateAssets>
2323
</PackageReference>
24-
<PackageReference Include="xunit.runner.visualstudio" Version="3.0.2">
24+
<PackageReference Include="xunit.runner.visualstudio" Version="3.1.1">
2525
<PrivateAssets>all</PrivateAssets>
2626
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2727
</PackageReference>

IntelliTect.TestTools.Selenate/DriverHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ public void TakeScreenshot()
210210
{
211211
Screenshot screenshot = takeScreenshot.GetScreenshot();
212212
Debug.WriteLine($"Saving screenshot to location: {ScreenshotLocation.FullName}");
213-
screenshot?.SaveAsFile(ScreenshotLocation.FullName, ScreenshotImageFormat.Png);
213+
screenshot?.SaveAsFile(ScreenshotLocation.FullName);
214214
}
215215
}
216216
}

IntelliTect.TestTools.Selenate/ElementBase.cs~HEAD

Lines changed: 0 additions & 19 deletions
This file was deleted.

IntelliTect.TestTools.Selenate/ElementHandler.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public void Click()
148148
wait.IgnoreExceptionTypes(
149149
typeof(NoSuchElementException),
150150
typeof(InvalidElementStateException),
151-
typeof(ElementNotVisibleException),
151+
typeof(ElementNotInteractableException),
152152
typeof(StaleElementReferenceException),
153153
typeof(ElementClickInterceptedException)
154154
);
@@ -170,7 +170,6 @@ public void SendKeys(string textToSend)
170170
wait.IgnoreExceptionTypes(
171171
typeof(NoSuchElementException),
172172
typeof(InvalidElementStateException),
173-
typeof(ElementNotVisibleException),
174173
typeof(StaleElementReferenceException),
175174
typeof(ElementNotInteractableException)
176175
);
@@ -234,7 +233,7 @@ public string Text()
234233
wait.IgnoreExceptionTypes(
235234
typeof(NoSuchElementException),
236235
typeof(InvalidElementStateException),
237-
typeof(ElementNotVisibleException),
236+
typeof(ElementNotInteractableException),
238237
typeof(StaleElementReferenceException)
239238
);
240239

IntelliTect.TestTools.Selenate/IntelliTect.TestTools.Selenate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<PackageReference Include="IntelliTect.Analyzers" Version="0.2.0">
2121
<PrivateAssets>all</PrivateAssets>
2222
</PackageReference>
23-
<PackageReference Include="Selenium.WebDriver" Version="4.13.1" />
23+
<PackageReference Include="Selenium.WebDriver" Version="4.33.0" />
2424
</ItemGroup>
2525

2626
</Project>

0 commit comments

Comments
 (0)