diff --git a/src/test/java/org/htmlunit/libraries/HtmxTest1x7x0.java b/src/test/java/org/htmlunit/libraries/HtmxTest1x7x0.java
index 8b52b56b35d..a6bdf5d26f7 100644
--- a/src/test/java/org/htmlunit/libraries/HtmxTest1x7x0.java
+++ b/src/test/java/org/htmlunit/libraries/HtmxTest1x7x0.java
@@ -14,6 +14,7 @@
*/
package org.htmlunit.libraries;
+import org.htmlunit.WebClient;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
@@ -38,4 +39,13 @@ public class HtmxTest1x7x0 extends HtmxTest {
public void htmx() throws Exception {
htmx("htmx-1.7.0");
}
+
+ @Override
+ protected void setupWebClient(final WebClient webClient) {
+ super.setupWebClient(webClient);
+
+ if (webClient.getBrowserVersion().isIE()) {
+ webClient.getOptions().setThrowExceptionOnScriptError(false);
+ }
+ }
}
diff --git a/src/test/java/org/htmlunit/libraries/HtmxTest1x8x4.java b/src/test/java/org/htmlunit/libraries/HtmxTest1x8x4.java
index 8744fa68125..a95cd1f1aa8 100644
--- a/src/test/java/org/htmlunit/libraries/HtmxTest1x8x4.java
+++ b/src/test/java/org/htmlunit/libraries/HtmxTest1x8x4.java
@@ -14,6 +14,7 @@
*/
package org.htmlunit.libraries;
+import org.htmlunit.WebClient;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
@@ -38,4 +39,13 @@ public class HtmxTest1x8x4 extends HtmxTest {
public void htmx() throws Exception {
htmx("htmx-1.8.4");
}
+
+ @Override
+ protected void setupWebClient(final WebClient webClient) {
+ super.setupWebClient(webClient);
+
+ if (webClient.getBrowserVersion().isIE()) {
+ webClient.getOptions().setThrowExceptionOnScriptError(false);
+ }
+ }
}
diff --git a/src/test/java/org/htmlunit/libraries/HtmxTest1x9x2.java b/src/test/java/org/htmlunit/libraries/HtmxTest1x9x2.java
index e784f3b07d5..e41162eddf7 100644
--- a/src/test/java/org/htmlunit/libraries/HtmxTest1x9x2.java
+++ b/src/test/java/org/htmlunit/libraries/HtmxTest1x9x2.java
@@ -14,6 +14,7 @@
*/
package org.htmlunit.libraries;
+import org.htmlunit.WebClient;
import org.htmlunit.junit.BrowserRunner;
import org.htmlunit.junit.BrowserRunner.Alerts;
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
@@ -39,4 +40,13 @@ public class HtmxTest1x9x2 extends HtmxTest {
public void htmx() throws Exception {
htmx("htmx-1.9.2");
}
+
+ @Override
+ protected void setupWebClient(final WebClient webClient) {
+ super.setupWebClient(webClient);
+
+ if (webClient.getBrowserVersion().isIE()) {
+ webClient.getOptions().setThrowExceptionOnScriptError(false);
+ }
+ }
}