java.lang.ClassCastException: com.gargoylesoftware.htmlunit.svg.SvgElement cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlElement

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • ClassCast exception loading page
    via htmlunit by sirstrahd
    ,
    • java.lang.ClassCastException: com.gargoylesoftware.htmlunit.svg.SvgElement cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlElement at com.gargoylesoftware.htmlunit.html.HtmlPage.getDocumentElement(HtmlPage.java:328) at com.gargoylesoftware.htmlunit.html.HtmlPage.executeEventHandlersIfNeeded(HtmlPage.java:1187) at com.gargoylesoftware.htmlunit.html.HtmlPage.cleanUp(HtmlPage.java:308) at com.gargoylesoftware.htmlunit.WebWindowImpl.removeChildWindow(WebWindowImpl.java:225) at com.gargoylesoftware.htmlunit.WebWindowImpl.destroyChildren(WebWindowImpl.java:207) at com.gargoylesoftware.htmlunit.TopLevelWindow.close(TopLevelWindow.java:126) at com.gargoylesoftware.htmlunit.WebClient.close(WebClient.java:1799) at com.iccenter.integrationtest.tools.HtmlUnitRunner.browser_getPage(HtmlUnitRunner.java:22)
    No Bugmate found.