java.lang.ClassCastException

com.gargoylesoftware.htmlunit.html.HtmlPage

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15

  • com.gargoylesoftware.htmlunit.html.HtmlPage
  • com.gargoylesoftware.htmlunit.UnexpectedPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage
  • com.gargoylesoftware.htmlunit.xml.XmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage
  • Stack trace

    • java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage at com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.selects(Stylesheet.java:264) at com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.selects(Stylesheet.java:187) at com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.selects(Stylesheet.java:177) at com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.modifyIfNecessary(Stylesheet.java:138) at com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_getComputedStyle(Window.java:1186) at com.gargoylesoftware.htmlunit.javascript.host.HTMLElement.jsxGet_currentStyle(HTMLElement.java:167) at com.gargoylesoftware.htmlunit.javascript.host.HTMLElement.jsxGet_offsetWidth(HTMLElement.java:1505)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.