com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[*] attributeName=[id] attributeValue=[doesNotExist]

htmlunit | renefoobar | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Inconsistent handling of not found elements via getByXPath

    htmlunit | 9 years ago | renefoobar
    com.gargoylesoftware.htmlunit.ElementNotFoundException: elementName=[*] attributeName=[id] attributeValue=[doesNotExist]

    Root Cause Analysis

    1. com.gargoylesoftware.htmlunit.ElementNotFoundException

      elementName=[*] attributeName=[id] attributeValue=[doesNotExist]

      at com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElementById()
    2. HtmlUnit
      NodeRelativeNavigator.getElementById
      1. com.gargoylesoftware.htmlunit.html.HtmlPage.getHtmlElementById(HtmlPage.java:1356)
      2. com.gargoylesoftware.htmlunit.html.xpath.DocumentNavigator.getElementById(DocumentNavigator.java:409)
      3. com.gargoylesoftware.htmlunit.html.xpath.NodeRelativeNavigator.getElementById(NodeRelativeNavigator.java:136)
      3 frames
    3. jaxen
      DefaultFunctionCallExpr.evaluate
      1. org.jaxen.function.IdFunction.evaluate(IdFunction.java:149)
      2. org.jaxen.function.IdFunction.call(IdFunction.java:108)
      3. org.jaxen.expr.DefaultFunctionCallExpr.evaluate(DefaultFunctionCallExpr.java:177)
      3 frames