[Webtest] Forward referencing issue during FrameSet loading
Nimesh Muley
webtest@lists.canoo.com
Wed, 13 Jul 2005 18:11:21 +0530
Hi,
We have an issue with forward referencing while loading frameset in Webtest=
. The application works fine in IE as well as FireFox. Have not tested on M=
ozilla though.
HTML Source is as follows
-----------------------------------
MainFrame.html
-----------------------------------
<HTML>
<HEAD>
<TITLE>
Main
</TITLE>
<META HTTP-EQUIV=3D"EXPIRES" CONTENT=3D"0">
<META HTTP-EQUIV=3D"PRAGMA" CONTENT=3D"no-cache">
<META HTTP-EQUIV=3D"CACHE-CONTROL" CONTENT=3D"no-cache">
</HEAD>
<FRAMESET ROWS=3D"14%,*" FRAMEBORDER=3D"0" FRAMESPACING=3D"0">
<FRAME NAME=3D"topbar" SRC=3D"about:blank" FRAMEBORDER=3D"0" SCROLLING=
=3D"no" NORESIZE>
<FRAMESET COLS=3D"18%,*" FRAMEBORDER=3D"0" FRAMESPACING=3D"0">
<FRAME NAME=3D"menu" SRC=3D"Menu.html" FRAMEBORDER=3D"0" SCROLLING=
=3D"no" NORESIZE>
<FRAMESET ROWS=3D"83%,17%,*,*" FRAMEBORDER=3D"0" FRAMESPACING=3D"0=
" name=3D"inn">
<FRAME NAME=3D"workarea" SRC=3D"about:blank" FRAMEBORDER=3D"0" =
SCROLLING=3D"auto" NORESIZE>
<FRAME NAME=3D"button_pallete" SRC=3D"about:blank" FRAMEBORDER=
=3D"0" SCROLLING=3D"no" NORESIZE>
<FRAME NAME=3D"hiddenFrame" SRC=3D"about:blank" FRAMEBORDER=3D"=
0" SCROLLING=3D"no" NORESIZE>
</FRAMESET>
</FRAMESET>
</FRAMESET>
</HTML>
-----------------------------------
Menu.html
-----------------------------------
<HTML>
<HEAD>
<TITLE>Page 1</TITLE>
<script language=3D"javascript1.2" type=3D"text/javascript">
var BUTTON_PALLETE;
function checkTop()
{
alert("in menu.html checktop top.button_pallete =3D " + top.button_pall=
ete);
alert("in menu.html checktop BUTTON_PALLETE =3D " + BUTTON_PALLETE);
BUTTON_PALLETE.src=3D"Button.html";
}
function init()
{
BUTTON_PALLETE=3Dtop.button_pallete;
alert("In init of menu.html..Hi button pallete :"+BUTTON_PALLETE+" Top =
Button Pallette "+top.button_pallete);
}
</script>
</HEAD>
<BODY onload=3D"init()">
<FORM action=3D"Href_Hash2.html" METHOD=3D"POST" name=3D"Test1">
<a href=3D"#" onclick=3D"checkTop()">Click Here</a>
</FORM>
</BODY>
</HTML>
-------------------------------------
The script is as follows :=20
-------------------------------------
<invoke url=3D"MainFrame.html"/>
<followframe name=3D"menu" />
<clicklink label=3D"Click Here" />
-------------------------------------
When MainFrame.html is invoked, the BUTTON_PALLETE is initialized with null=
in the Menu.html page. Although top.button_pallette is a valid object in t=
he alert. This can be seen as part of alert debug. Not a neat way to check =
script :-(.
I am not sure how parsing is done in Webtest (or HTMLUnit internally). At t=
he same time this works fine in IE as well as FireFox.
When we use followframe, it intelligently picks up the already parsed page =
(does not try to get/load/parse it again).
Is there a workaround for this issue or can this be fixed easily?
Regards,
- Nimesh
MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that =
of Mastek Limited, unless specifically indicated to that effect. Mastek Lim=
ited does not accept any responsibility or liability for it. This e-mail an=
d attachments (if any) transmitted with it are confidential and/or privileg=
ed and solely for the use of the intended person or entity to which it is a=
ddressed. Any review, re-transmission, dissemination or other use of or tak=
ing of any action in reliance upon this information by persons or entities =
other than the intended recipient is prohibited. This e-mail and its attach=
ments have been scanned for the presence of computer viruses. It is the res=
ponsibility of the recipient to run the virus check on e-mails and attachme=
nts before opening them. If you have received this e-mail in error, kindly =
delete this e-mail from all computers.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~=
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~