diff --git a/core/pom.xml b/core/pom.xml
index fab776d142ef7cf65c9067e5dec2452b32539501..dc0d07d8066353c64e4ab7b1ea5a155e0d60c36e 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -319,6 +319,12 @@
       <artifactId>selenium-java</artifactId>
       <scope>test</scope>
     </dependency>
+    <!-- Added for selenium: -->
+    <dependency>
+      <groupId>xml-apis</groupId>
+      <artifactId>xml-apis</artifactId>
+      <scope>test</scope>
+    </dependency>
     <dependency>
       <groupId>org.mockito</groupId>
       <artifactId>mockito-all</artifactId>
diff --git a/pom.xml b/pom.xml
index f99a83b9994eddbe91f90359b67b395482c8a014..51bef30f9ca8f83082f6c2dcb7fc592e7a4d5ff5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -422,6 +422,13 @@
         <version>2.42.2</version>
         <scope>test</scope>
       </dependency>
+      <!-- Added for selenium only, and should match its dependent version: -->
+      <dependency>
+        <groupId>xml-apis</groupId>
+        <artifactId>xml-apis</artifactId>
+        <version>1.4.01</version>
+        <scope>test</scope>
+      </dependency>
       <dependency>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-api</artifactId>