com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "XML" is not defined. (http://localhost/test.js#1)

htmlunit | shirleyjwilder | 7 years ago
  1. 0

    Can't parse html when using MockWebConnection

    htmlunit | 7 years ago | shirleyjwilder
    com.gargoylesoftware.htmlunit.ScriptException: ReferenceError: "XML" is not defined. (http://localhost/test.js#1)
  2. 0

    facing issue with HtmlUnitDriver

    Stack Overflow | 4 years ago | dhananjay
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function aa in object [object Object]. (https://apis.google.com/_/apps-static/_/js/gapi/plusone/rt=j/ver=use0LfpKko4.en_US./sv=1/am=!CVDWKorrwvOYBs7wcQ/d=1/rs=AItRSTMxl0wiQySaT0IYW5gyOkdlVL9A6A/cb=gapi.loaded_0#3)
  3. 0

    Final redirected URL using Selenium Htmlunit Java

    Stack Overflow | 3 years ago | user1965449
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot call method "indexOf" of null (script in http://www.sears.com/search=little%20tikes&Little%20Tikes?filter=Brand&keywordSearch=false&catalogId=12605&adCell=W3&catPrediction=false&previousSort=ORIGINAL_SORT_ORDER&viewItems=50&storeId=10153&levels=Toys+%26+Games from (6942, 33) to (6974, 14)#6966)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    HtmlUnit Javascript Error

    Stack Overflow | 2 years ago | silentz0r
    com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function stopPropagation in object [object MessageEvent]. (http://ajax.cloudflare.com/cdn-cgi/nexp/dokv=97fb4d042e/cloudflare.min.js#3)
  6. 0

    selenium htmlunitwithjs in python error

    Stack Overflow | 4 years ago | user1781889
    com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot find function attachEvent in object [object Window]. (http://www.investmentmap.org/W ebResource.axd?d=LhblxRSuIsXvwRXVMFTkFY2_MTprvQMTc0m2WmtZ11CqrDE7VxOZIP2JWr5nhbJ dQc4rLL2xsB8APnsxJfp2YQ57TEMa7scxhAPpUl0DIfBcLe19toyYfpm3QnO4qTRHvpItdEAI7kl7Kci Y-atDSENblKs1&t=634763918950917029#1)

  1. tfr 1 times, last 4 months ago
4 unregistered visitors
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. com.gargoylesoftware.htmlunit.ScriptException

    ReferenceError: "XML" is not defined. (http://localhost/test.js#1)

    at com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run()
  2. HtmlUnit
    JavaScriptEngine$HtmlUnitContextAction.run
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine$HtmlUnitContextAction.run(JavaScriptEngine.java:527)
    1 frame
  3. HtmlUnit Core JS
    ContextFactory.call
    1. net.sourceforge.htmlunit.corejs.javascript.Context.call(Context.java:537)
    2. net.sourceforge.htmlunit.corejs.javascript.ContextFactory.call(ContextFactory.java:538)
    2 frames
  4. HtmlUnit
    HTMLParser$HtmlUnitDOMBuilder.endElement
    1. com.gargoylesoftware.htmlunit.javascript.JavaScriptEngine.execute(JavaScriptEngine.java:425)
    2. com.gargoylesoftware.htmlunit.html.HtmlPage.loadExternalJavaScriptFile(HtmlPage.java:980)
    3. com.gargoylesoftware.htmlunit.html.HtmlScript.executeScriptIfNeeded(HtmlScript.java:353)
    4. com.gargoylesoftware.htmlunit.html.HtmlScript$1.execute(HtmlScript.java:215)
    5. com.gargoylesoftware.htmlunit.html.HtmlScript.onAllChildrenAddedToPage(HtmlScript.java:235)
    6. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:718)
    6 frames
  5. Xerces2-j
    AbstractSAXParser.endElement
    1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
    1 frame
  6. HtmlUnit
    HTMLParser$HtmlUnitDOMBuilder.endElement
    1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.endElement(HTMLParser.java:676)
    1 frame
  7. Maven
    HTMLConfiguration.parse
    1. org.cyberneko.html.HTMLTagBalancer.callEndElement(HTMLTagBalancer.java:1136)
    2. org.cyberneko.html.HTMLTagBalancer.endElement(HTMLTagBalancer.java:1038)
    3. org.cyberneko.html.filters.DefaultFilter.endElement(DefaultFilter.java:206)
    4. org.cyberneko.html.filters.NamespaceBinder.endElement(NamespaceBinder.java:329)
    5. org.cyberneko.html.HTMLScanner$ContentScanner.scanEndElement(HTMLScanner.java:2999)
    6. org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1991)
    7. org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:895)
    8. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499)
    9. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452)
    9 frames
  8. Xerces2-j
    XMLParser.parse
    1. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    1 frame
  9. HtmlUnit
    WebClient.getPage
    1. com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:896)
    2. com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:350)
    3. com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:304)
    4. com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:134)
    5. com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:101)
    6. com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:420)
    7. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:303)
    8. com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:360)
    8 frames