java.lang.ClassCastException

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.

    • java.lang.ClassCastException: com.gargoylesoftware.htmlunit.javascript.host.Window cannot be cast to com.gargoylesoftware.htmlunit.javascript.host.html.HTMLDocument at com.gargoylesoftware.htmlunit.javascript.host.Window.getComputedStyle(Window.java:1587) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.appendNode(HtmlSerializer.java:276) at com.gargoylesoftware.htmlunit.html.HtmlSerializer.asText(HtmlSerializer.java:62) at com.gargoylesoftware.htmlunit.html.DomNode.asText(DomNode.java:794) at com.gargoylesoftware.htmlunit.html.HtmlPage.getAnchorByText(HtmlPage.java:628)
    No Bugmate found.