java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:115) at org.apache.xpath.jaxp.XPathExpressionImpl.eval(XPathExpressionImpl.java:99) at org.apache.xpath.jaxp.XPathExpressionImpl.evaluate(XPathExpressionImpl.java:184) at org.openqa.selenium.firefox.internal.FileExtension.readIdFromInstallRdf(FileExtension.java:120) at org.openqa.selenium.firefox.internal.FileExtension.writeTo(FileExtension.java:60) at org.openqa.selenium.firefox.internal.ClasspathExtension.writeTo(ClasspathExtension.java:63) at org.openqa.selenium.firefox.FirefoxProfile.installExtensions(FirefoxProfile.java:416) at org.openqa.selenium.firefox.FirefoxProfile.layoutOnDisk(FirefoxProfile.java:394) at org.openqa.selenium.firefox.internal.NewProfileExtensionConnection.start(NewProfileExtensionConnection.java:89) at org.openqa.selenium.firefox.FirefoxDriver.startClient(FirefoxDriver.java:246)
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.42.2</version> </dependency>
使用selenium遇到java.lang.NoSuchMethodError: org.apache.xpath.XPathContext,排查,布布扣,bubuko.com
使用selenium遇到java.lang.NoSuchMethodError: org.apache.xpath.XPathContext,排查
原文地址:http://www.cnblogs.com/bukudekong/p/3819726.html