diff --git a/junit5/pom.xml b/junit5/pom.xml
index 1e1d06e..5263b26 100644
--- a/junit5/pom.xml
+++ b/junit5/pom.xml
@@ -63,17 +63,17 @@
org.seleniumhq.selenium
selenium-api
- 3.8.1
+ 3.12.0
org.seleniumhq.selenium
selenium-chrome-driver
- 3.8.1
+ 3.12.0
org.seleniumhq.selenium
selenium-remote-driver
- 3.8.1
+ 3.12.0
org.seleniumhq.selenium
diff --git a/testng/pom.xml b/testng/pom.xml
index 652a0ad..8b31746 100644
--- a/testng/pom.xml
+++ b/testng/pom.xml
@@ -48,12 +48,12 @@
org.seleniumhq.selenium
selenium-chrome-driver
- 3.8.1
+ 3.12.0
org.seleniumhq.selenium
selenium-api
- 3.8.1
+ 3.12.0
org.testng
diff --git a/testng/src/main/java/com/github/automatedowl/tools/JSErrorsCollectorListener.java b/testng/src/main/java/com/github/automatedowl/tools/JSErrorsCollectorListener.java
index b41cce8..ca616b6 100644
--- a/testng/src/main/java/com/github/automatedowl/tools/JSErrorsCollectorListener.java
+++ b/testng/src/main/java/com/github/automatedowl/tools/JSErrorsCollectorListener.java
@@ -63,8 +63,8 @@ public void afterInvocation(IInvokedMethod iInvokedMethod, ITestResult iTestResu
}
else if (isAssertJSErrorsEnabled(
iInvokedMethod) && getJSErrorsFromLogEntries(logEntries).anyMatch(e -> true)) {
- JSErrorsDriverHolder.getDriverForTest(iInvokedMethod.getTestMethod().getMethodName()).quit();
- throw new WebDriverException(JS_ERRORS_EXCEPTION_STRING);
+ logger.severe(JS_ERRORS_EXCEPTION_STRING);
+ iTestResult.setStatus(ITestResult.FAILURE);
}
}
}