java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage

htmlunit | nobody | 8 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

    ClassCastException using offsetWidth attribute

    htmlunit | 8 years ago | nobody
    java.lang.ClassCastException: com.gargoylesoftware.htmlunit.html.HtmlPage

    Root Cause Analysis

    1. java.lang.ClassCastException

      com.gargoylesoftware.htmlunit.html.HtmlPage

      at com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.selects()
    2. HtmlUnit
      HTMLElement.jsxGet_offsetWidth
      1. com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.selects(Stylesheet.java:264)
      2. com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.selects(Stylesheet.java:187)
      3. com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.selects(Stylesheet.java:177)
      4. com.gargoylesoftware.htmlunit.javascript.host.Stylesheet.modifyIfNecessary(Stylesheet.java:138)
      5. com.gargoylesoftware.htmlunit.javascript.host.Window.jsxFunction_getComputedStyle(Window.java:1186)
      6. com.gargoylesoftware.htmlunit.javascript.host.HTMLElement.jsxGet_currentStyle(HTMLElement.java:167)
      7. com.gargoylesoftware.htmlunit.javascript.host.HTMLElement.jsxGet_offsetWidth(HTMLElement.java:1505)
      7 frames