From: Johannes T. <joh...@im...> - 2003-08-22 04:24:08
|
Hi, for a research project I currently try to use HTMLUnit for the automated testing of a website with JSPs. I suspect that HTMLUnit does not recognize a page with content type "text/html" (which would result in a HtmlPage object). Instead I get a "text/plain", resulting in a TextPage object. Has anybody observed a similar behaviour ? Is there any "trick" to "cast" a TextPage to a HtmlPage ? I tried naivly calling the constructor of HtmlPage with parameter values extracted from the TextPage object. But this does not work. Thanks in advance. Johannes --=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Dr. Johannes Trost email joh...@im... imbus AG WWW http://www.imbus.de Unter der Linde 16 phone +49 / (0)89 / 3219909-15 D-80939 M=FCnchen fax +49 / (0)89 / 3219909-50 Germany =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D |