Skip to content

Commit

Permalink
Update Selenium packages to version 4.8.1 (#230)
Browse files Browse the repository at this point in the history
Make JavaScriptHandling disposable
Closes #228
  • Loading branch information
mialeska authored Feb 22, 2023
1 parent 80513d8 commit deb7725
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Aquality.Selenium.Core" Version="2.1.0" />
<PackageReference Include="Aquality.Selenium.Core" Version="2.1.2" />
<PackageReference Include="WebDriverManager" Version="2.16.2" />
</ItemGroup>

Expand Down
6 changes: 6 additions & 0 deletions Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -276,5 +276,23 @@ public async Task Reset()
await javaScriptEngine.Reset();
bindings.Clear();
}

/// <summary>
/// Performs application-defined tasks associated with freeing, releasing,
/// or resetting unmanaged resources.
/// </summary>
public void Dispose()
{
Dispose(disposing: true);
GC.SuppressFinalize(this);
}

protected virtual void Dispose(bool disposing)
{
if (disposing)
{
javaScriptEngine.Dispose();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.4.1" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit deb7725

Please sign in to comment.