Hello *,
I try to get the frames from the following page:
<HTML>
<HEAD>
<TITLE>Test</TITLE>
<meta http-equiv=3D"pragma" content=3D"no-cache">
</HEAD>
<frameset cols=3D"170, *" border=3D"0" frameborder=3D"0" framespacing=3D"=
0">
<frame name=3D"navi" src=3D"navi.jsp" scrolling=3D"auto" framebo=
rder=3D"0" border=3D"0" framespacing=3D"0" marginwidth=3D"0"=20
marginheight=3D"0" noresize>
<frameset rows=3D"20, *" border=3D"0" frameborder=3D"0" framespa=
cing=3D"0">
<frame name=3D"meta" src=3D"meta.htm" scrolling=3D"no" f=
rameborder=3D"0" marginheight=3D"0" marginwidth=3D"0" noresize>
<frame name=3D"main" src=3D"main.jsp" scrolling=3D"auto"=
frameborder=3D"0" marginheight=3D"10" marginwidth=3D"7" noresize>
</frameset>
</frameset>
</HTML>
What I try to do is:
WebConversation wc =3D new WebConversation();
WebResponse resp =3D wc.getResponse( "The above page" );
WebResponse top =3D wc.getFrameContents( "_top" );
WebResponse meta =3D wc.getFrameContents( "meta" );
WebResponse navi =3D wc.getFrameContents( "navi" );
WebResponse main =3D wc.getFrameContents( "main" );
Getting "_top" works, but the others don't.
Is this a problem with the "frameset" statement?
And another question:
How can I dump the response I received to a file or screen,
is that possible at all?
I'm running httpunit 1.5 on weblogic 5.1 on linux.
Thanks,
Stefan
--=20
-----------------------------------------------------------------------
Stefan Fournier |ConSol*
Tel. +49 (0)89/45841-134 |Consulting&Solutions Software GmbH
Fax +49 (0)89/45841-139 |Franziskanerstr. 38, D-81669 M=FCnchen
email: ste...@co... |http://www.consol.de
-----------------------------------------------------------------------
|