webDriver 運行的時候出現:
Caused by: java.lang.ClassNotFoundException: org.w3c.dom.ElementTraversal
解決辦法:
只需要maven pom.xml 添加依賴就行了
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
<version>1.4.01</version>
</dependency>
參考:
http://mvnrepository.com/artifact/xml-apis/xml-apis/1.4.01