diff --git a/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.csproj b/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.csproj
index 3cf05aa1..b8580e5e 100644
--- a/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.csproj
+++ b/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.csproj
@@ -76,7 +76,7 @@
-
+
diff --git a/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.xml b/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.xml
index d5873eaa..08fc26ec 100644
--- a/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.xml
+++ b/Aquality.Selenium/src/Aquality.Selenium/Aquality.Selenium.xml
@@ -852,6 +852,12 @@
A task that represents the asynchronous operation.
+
+
+ Performs application-defined tasks associated with freeing, releasing,
+ or resetting unmanaged resources.
+
+
Factory that creates instance of local Browser.
diff --git a/Aquality.Selenium/src/Aquality.Selenium/Browsers/JavaScriptHandling.cs b/Aquality.Selenium/src/Aquality.Selenium/Browsers/JavaScriptHandling.cs
index ee2aa125..8e1512d4 100644
--- a/Aquality.Selenium/src/Aquality.Selenium/Browsers/JavaScriptHandling.cs
+++ b/Aquality.Selenium/src/Aquality.Selenium/Browsers/JavaScriptHandling.cs
@@ -276,5 +276,23 @@ public async Task Reset()
await javaScriptEngine.Reset();
bindings.Clear();
}
+
+ ///
+ /// Performs application-defined tasks associated with freeing, releasing,
+ /// or resetting unmanaged resources.
+ ///
+ public void Dispose()
+ {
+ Dispose(disposing: true);
+ GC.SuppressFinalize(this);
+ }
+
+ protected virtual void Dispose(bool disposing)
+ {
+ if (disposing)
+ {
+ javaScriptEngine.Dispose();
+ }
+ }
}
}
diff --git a/Aquality.Selenium/tests/Aquality.Selenium.Tests/Aquality.Selenium.Tests.csproj b/Aquality.Selenium/tests/Aquality.Selenium.Tests/Aquality.Selenium.Tests.csproj
index 80cd2a10..75a77b0d 100644
--- a/Aquality.Selenium/tests/Aquality.Selenium.Tests/Aquality.Selenium.Tests.csproj
+++ b/Aquality.Selenium/tests/Aquality.Selenium.Tests/Aquality.Selenium.Tests.csproj
@@ -34,7 +34,7 @@
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+