org.openqa.selenium.WebDriverException: com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "XPathEvaluator" is not defined. (http://CDUMONT:51734/dojo_trunk/dojo/dojo.js#313(Function)#1(eval)#22) Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2 build 9200', java.version: '1.6.0' Driver info: driver.version: HtmlUnitDriver

htmlunit | chuckdumont | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ReferenceError: XPathEvaluator is not defined

    htmlunit | 4 years ago | chuckdumont
    org.openqa.selenium.WebDriverException: com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "XPathEvaluator" is not defined. (http://CDUMONT:51734/dojo_trunk/dojo/dojo.js#313(Function)#1(eval)#22) Build info: version: '2.33.0', revision: '4ecaf82108b2a6cc6f006aae81961236eba93358', time: '2013-05-22 12:00:17' System info: os.name: 'Windows 8', os.arch: 'amd64', os.version: '6.2 build 9200', java.version: '1.6.0' Driver info: driver.version: HtmlUnitDriver
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    HtmlUnit Crashes on javascript

    Stack Overflow | 3 years ago | Brandon Ling
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function getPropertyValue in object [object ComputedCSSStyleDeclaration]. (http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js#4)
  4. 0

    Help using Selenium!!!

    Google Groups | 4 years ago | Park Jang Soon
    driver.version: HtmlUnitDriver
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. net.sourceforge.htmlunit.corejs.javascript.EcmaError

    ReferenceError: "XPathEvaluator" is not defined. (http://CDUMONT:51734/dojo_trunk/dojo/dojo.js#313(Function)#1(eval)#22)

    at net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError()
  2. HtmlUnit Core JS
    ContextFactory.doTopCall
    1. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3603)
    2. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3587)
    3. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.notFoundError(ScriptRuntime.java:3657)
    4. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.nameOrFunction(ScriptRuntime.java:1749)
    5. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.name(ScriptRuntime.java:1690)
    6. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpretLoop(Interpreter.java:1622)
    7. net.sourceforge.htmlunit.corejs.javascript.Interpreter.interpret(Interpreter.java:798)
    8. net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:105)
    9. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.doTopCall(ContextFactory.java:405)
    9 frames
  3. HtmlUnit
    HtmlUnitContextFactory.doTopCall
    1. com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.doTopCall(HtmlUnitContextFactory.java:275)
    1 frame
  4. HtmlUnit Core JS
    InterpretedFunction.call
    1. net.sourceforge.htmlunit.corejs.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3031)
    2. net.sourceforge.htmlunit.corejs.javascript.InterpretedFunction.call(InterpretedFunction.java:103)
    2 frames
  5. HtmlUnit
    JavaScriptEngine$HtmlUnitContextAction.run
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$4.doRun(JavaScriptEngine.java:594)
    2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:654)
    2 frames
  6. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
    2 frames
  7. HtmlUnit
    HtmlElement$1.run
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:601)
    2. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.callFunction(JavaScriptEngine.java:576)
    3. com.gargoylesoftware.htmlunit.html.HtmlPage.executeJavaScriptFunctionIfPossible(HtmlPage.java:1005)
    4. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeEventListeners(EventListenersContainer.java:175)
    5. com.gargoylesoftware.htmlunit.javascript.host.EventListenersContainer.executeBubblingListeners(EventListenersContainer.java:235)
    6. com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:803)
    7. com.gargoylesoftware.htmlunit.javascript.host.Node.fireEvent(Node.java:737)
    8. com.gargoylesoftware.htmlunit.html.HtmlElement$1.run(HtmlElement.java:867)
    8 frames
  8. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:601)
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:507)
    2 frames
  9. HtmlUnit
    WebClient.getPage
    1. com.gargoylesoftware.htmlunit.html.HtmlElement.fireEvent(HtmlElement.java:872)
    2. com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1268)
    3. com.gargoylesoftware.htmlunit.html.HtmlPage.initialize(HtmlPage.java:222)
    4. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:441)
    5. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:309)
    6. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:374)
    6 frames
  10. selenium-htmlunit-driver
    HtmlUnitDriver.get
    1. org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:366)
    2. org.openqa.selenium.htmlunit.HtmlUnitDriver.get(HtmlUnitDriver.java:355)
    2 frames
  11. com.metservice.jasminerunner
    JasmineTestRunner.describeChild
    1. com.metservice.jasminerunner.TestPage.run(TestPage.java:52)
    2. com.metservice.jasminerunner.junit.JasmineTestRunner.describeChild(JasmineTestRunner.java:322)
    3. com.metservice.jasminerunner.junit.JasmineTestRunner.describeChild(JasmineTestRunner.java:1)
    3 frames
  12. JUnit
    Runner.testCount
    1. org.junit.runners.ParentRunner.getDescription(ParentRunner.java:290)
    2. org.junit.runner.Runner.testCount(Runner.java:38)
    2 frames
  13. JUnit4 Runner
    JUnit4TestClassReference.countTestCases
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.countTestCases(JUnit4TestClassReference.java:30)
    1 frame
  14. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.countTests(RemoteTestRunner.java:487)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:455)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
    5 frames