Skip to content

Commit

Permalink
Merge pull request #48 from FlaUI/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
aristotelos authored May 16, 2024
2 parents bb6e770 + 1c5d4be commit 7889ff4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
6 changes: 3 additions & 3 deletions src/FlaUI.WebDriver.UITests/FlaUI.WebDriver.UITests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
<PackageReference Include="NUnit" Version="3.14.0" />
<PackageReference Include="NUnit" Version="4.1.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="Selenium.WebDriver" Version="4.15.0" />
<PackageReference Include="coverlet.collector" Version="3.0.2">
<PackageReference Include="Selenium.WebDriver" Version="4.20.0" />
<PackageReference Include="coverlet.collector" Version="6.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
Expand Down
10 changes: 3 additions & 7 deletions src/FlaUI.WebDriver.UITests/SessionTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using FlaUI.WebDriver.UITests.TestUtil;
using OpenQA.Selenium;
using System;
using System.Collections.Generic;

namespace FlaUI.WebDriver.UITests
{
Expand Down Expand Up @@ -95,12 +94,9 @@ public void NewSession_AppWorkingDir_IsSupported()
public void NewSession_Timeouts_IsSupported()
{
var driverOptions = FlaUIDriverOptions.TestApp();
driverOptions.AddAdditionalOption("timeouts", new Dictionary<string, int>()
{
["script"] = 10000,
["pageLoad"] = 50000,
["implicit"] = 3000
});
driverOptions.ScriptTimeout = TimeSpan.FromSeconds(10);
driverOptions.PageLoadTimeout = TimeSpan.FromSeconds(50);
driverOptions.ImplicitWaitTimeout = TimeSpan.FromSeconds(3);
using var driver = new RemoteWebDriver(WebDriverFixture.WebDriverUrl, driverOptions);

Assert.That(driver.Manage().Timeouts().AsynchronousJavaScript, Is.EqualTo(TimeSpan.FromSeconds(10)));
Expand Down
2 changes: 1 addition & 1 deletion src/FlaUI.WebDriver/FlaUI.WebDriver.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.5.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.6.1" />
</ItemGroup>

<ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/FlaUI.WebDriver/TimeoutsConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ namespace FlaUI.WebDriver
public class TimeoutsConfiguration
{
[JsonPropertyName("script")]
public int? ScriptTimeoutMs { get; set; } = 30000;
public double? ScriptTimeoutMs { get; set; } = 30000;
[JsonPropertyName("pageLoad")]
public int PageLoadTimeoutMs { get; set; } = 300000;
public double PageLoadTimeoutMs { get; set; } = 300000;
[JsonPropertyName("implicit")]
public int ImplicitWaitTimeoutMs { get; set; } = 0;
public double ImplicitWaitTimeoutMs { get; set; } = 0;
}
}

0 comments on commit 7889ff4

Please sign in to comment.