Menu

#1026 CCE on HtmlElement.click()

2.7
closed
None
5
2012-10-21
2010-02-15
No

Running against HtmlUnit 2.7.

Got: Caused by: java.lang.ClassCastException: com.gargoylesoftware.htmlunit.xml.XmlPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage

Full stack trace attached.

To recreate the problem:
svn co http://anonsvn.jboss.org/repos/jsfunit/htmlunit-richfaces/
cd htmlunit-richfaces
mvn install -Dtest=DataTableTest

The WAR file can be deployed to Tomcat 5.5 if you want to run it by hand.

Also see discussion from JSFUnit user who first encountered the problem:
http://community.jboss.org/message/526453#526453

Discussion

  • Stan Silvert

    Stan Silvert - 2010-02-15

    JUnit Report with stack trace

     
  • Marc Guillemot

    Marc Guillemot - 2010-02-17

    Now fixed in SVN. Thanks for the small test.

     

Log in to post a comment.