From: Ahmed A. <asa...@ya...> - 2014-02-05 08:57:59
|
Hi, This happens when HtmlUnit determines the content type of this page to be plain text, not HTML. Please send the details of the complete case. Ahmed ________________________________ From: Sreenath <sre...@gm...> To: "htm...@li..." <htm...@li...> Sent: Wednesday, February 5, 2014 11:53 AM Subject: [Htmlunit-user] java.lang.ClassCastException: com.gargoylesoftware.htmlunit.TextPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage Hello, I have tried to load pme web page url and did submission of the page, second page is not getting loaded due to following issue. java.lang.ClassCastException: com.gargoylesoftware.htmlunit.TextPage cannot be cast to com.gargoylesoftware.htmlunit.html.HtmlPage Note: my page is type of HtmlPage, not able to cast to HtmlPage Please advice why the second page is coming as type of com.gargoylesoftware.htmlunit.TextPage, and how can assign to HtmlPage type the same. Thanks in Advance Sreenadh |