[Webtest] Problem with clicklink.

Dilip N Palukuri webtest@lists.canoo.com
Thu, 31 Jul 2003 17:24:52 +0530


--------------Boundary-00=_G31WG6G0000000000000
Content-Type: Multipart/Alternative;
  boundary="------------Boundary-00=_G31WBHK0000000000000"


--------------Boundary-00=_G31WBHK0000000000000
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello Techies,=0D
=0D
I've got stuck trying to submit a form that relies on JavaScript for=0D
submission. I am using clicklink to submitt the form (Code follows)=0D
=0D
<clicklink stepid=3D"Follow the link to the next page"=0D
            label=3D""=0D
            save=3D"myResultPage"=0D
            href=3D"javascript:loadFrms();"/>=0D
=0D
=0D
  =0D
Build was successfull with the following message=0D
=0D
[testSpec] Start Step: Follow the link to the next page" (5/7)=0D
[testSpec] -> gotoTarget(by url): javascript:loadFrms();=0D
[testSpec] Completed Step: Follow the link to the next page" (5/7)=0D
[testSpec] Start Step: Home Page follows if login success" (6/7)=0D
[testSpec] Completed Step: Home Page follows if login success" (6/7)=0D
[testSpec] Start Step: [implicit tear down step]" (7/7)=0D
[testSpec] Completed Step: [implicit tear down step]" (7/7)=0D
[testSpec] Report class: com.canoo.webtest.reporting.XmlReporter=0D
=0D
the results page shows the same page where hyperlink exists insted of nex=
t
page. Following is the relavent part of script, the link I tried to click=
 is
highlighted.=0D
=0D
=0D
<script language=3D"javascript">=0D
<body onload=3D"javascript:document.forms[0].elements[0].focus();">=0D
<form name=3D"frmLogin">=0D
=2E...=0D
=2E....=0D
=2E......=0D
=2E........=0D
=0D
       <td colspan=3D"2" background=3D"images/loginbox_btnbg.jpg" width=3D=
"305"
height=3D"31" align=3D"center"><a href=3D"javascript:loadFrms();"><img sr=
c=3D
images/login_btn.gif" border=3D"0"></a>&nbsp;&nbsp;<a href=3D
javascript:document.forms[0].reset();document.forms[0].elements[0].focus(=
);
><img src=3D"images/reset_btn.gif" border=3D"0"></a></td>=0D
       =0D
=0D
Shall be looking for help=0D
=0D
Thanks=0D
=0D
Dilip
--------------Boundary-00=_G31WBHK0000000000000
Content-Type: Text/HTML;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-8859-=
1">
<META content=3D"IncrediMail 1.0" name=3DGENERATOR>
<!--IncrdiXMLRemarkStart>
<IncrdiX-Info>
<X-FID>FLAVOR00-NONE-0000-0000-000000000000</X-FID>
<X-FVER>3.0</X-FVER>
<X-CNT>;</X-CNT>
</IncrdiX-Info>
<IncrdiXMLRemarkEnd-->
</HEAD>
<BODY style=3D"BACKGROUND-POSITION: 0px 0px; FONT-SIZE: 12pt; MARGIN: 5px=
 10px 10px; FONT-FAMILY: Arial" bgColor=3D#ffffff background=3D"" scroll=3D=
yes X-FVER=3D"3.0" ORGYPOS=3D"0">
<TABLE id=3DINCREDIMAINTABLE cellSpacing=3D0 cellPadding=3D2 width=3D"100=
%" border=3D0>
<TBODY>
<TR>
<TD id=3DINCREDITEXTREGION style=3D"FONT-SIZE: 12pt; CURSOR: auto; FONT-F=
AMILY: Arial" width=3D"100%">
<DIV><FONT face=3D"Courier New" size=3D2>Hello&nbsp;Techies,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>I've got stuck trying to submit =
a form that relies on JavaScript for<BR>submission. I am using clicklink =
to submitt the form (Code follows)</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2><FONT size=3D1><STRONG>&lt;click=
link stepid=3D"Follow the link to the next page"<BR>&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; label=3D""<BR>&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; save=3D"myResultPage"<BR>&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; href=3D"javascr=
ipt:loadFrms();"/&gt;</STRONG></FONT></DIV>
<DIV><BR><BR></FONT>&nbsp;&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Build was successfull with the f=
ollowing message</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2><STRONG>[testSpec] Start Step: F=
ollow the link to the next page" (5/7)<BR>[testSpec] -&gt; gotoTarget(by =
url): javascript:loadFrms();<BR>[testSpec] Completed Step: Follow the lin=
k to the next page" (5/7)<BR>[testSpec] Start Step: Home Page follows if =
login success" (6/7)<BR>[testSpec] Completed Step: Home Page follows if l=
ogin success" (6/7)<BR>[testSpec] Start Step: [implicit tear down step]" =
(7/7)<BR>[testSpec] Completed Step: [implicit tear down step]" (7/7)<BR>[=
testSpec] Report class: com.canoo.webtest.reporting.XmlReporter<BR></STRO=
NG></FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>the results page shows the same =
page where hyperlink exists&nbsp;insted of next page. Following is the re=
lavent part of script, the link I tried to click&nbsp;is highlighted.</FO=
NT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>&lt;script language=3D"javascrip=
t"&gt;<BR>&lt;body onload=3D"javascript:document.forms[0].elements[0].foc=
us();"&gt;<BR>&lt;form name=3D"frmLogin"&gt;<BR></FONT><FONT face=3D"Cour=
ier New" size=3D2>....</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>.....</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>.......</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>.........</FONT></DIV><FONT face=
=3D"Courier New" size=3D2>
<DIV><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;td colspan=3D"2" backgr=
ound=3D"images/loginbox_btnbg.jpg" width=3D"305" height=3D"31" align=3D"c=
enter"&gt;<STRONG><FONT color=3D#0000ff>&lt;a href=3D"javascript:loadFrms=
();"&gt;&lt;img src=3D"images/login_btn.gif" border=3D"0"&gt;&lt;/a&gt;</=
FONT></STRONG>&amp;nbsp;&amp;nbsp;&lt;a href=3D"javascript:document.forms=
[0].reset();document.forms[0].elements[0].focus();"&gt;&lt;img src=3D"ima=
ges/reset_btn.gif" border=3D"0"&gt;&lt;/a&gt;&lt;/td&gt;<BR>&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp; </DIV>
<DIV>&nbsp;</DIV>
<DIV>Shall be looking for help</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks</DIV>
<DIV>&nbsp;</DIV>
<DIV>Dilip</FONT></DIV></TD></TR>
<TR>
<TD id=3DINCREDIFOOTER width=3D"100%">
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
<TBODY>
<TR>
<TD width=3D"100%"></TD>
<TD id=3DINCREDISOUND vAlign=3Dbottom align=3Dmiddle></TD>
<TD id=3DINCREDIANIM vAlign=3Dbottom align=3Dmiddle></TD></TR></TBODY></T=
ABLE></TD></TR></TBODY></TABLE><SPAN id=3DIncrediStamp><SPAN dir=3Dltr><F=
ONT face=3D"Arial, Helvetica, sans-serif" size=3D2>______________________=
______________________________<BR><FONT face=3D"Comic Sans MS" size=3D2><=
A href=3D"http://www.incredimail.com/redir.asp?ad_id=3D309&amp;lang=3D9">=
<IMG alt=3D"" hspace=3D0 src=3D"cid:D940E28E-1EBC-454B-9990-547FE09F3582"=
 align=3Dbaseline border=3D0></A>&nbsp; <I>IncrediMail</I> - <B>Email has=
 finally evolved</B> - </FONT><A href=3D"http://www.incredimail.com/redir=
=2Easp?ad_id=3D309&amp;lang=3D9"><FONT face=3D"Times New Roman" size=3D3>=
<B><U>Click Here</U></B></FONT></A></SPAN></SPAN></FONT></BODY></HTML>
--------------Boundary-00=_G31WBHK0000000000000--

--------------Boundary-00=_G31WG6G0000000000000
Content-Type: image/gif;
  name="IMSTP.gif"
Content-Transfer-Encoding: base64
Content-ID: <D940E28E-1EBC-454B-9990-547FE09F3582>

R0lGODlhFAAPALMIAP9gAM9gAM8vAM9gL/+QL5AvAGAvAP9gL////wAAAAAAAAAAAAAAAAAAAAAA
AAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJFAAIACwAAAAAFAAPAAAEVRDJSaudJuudrxlEKI6B
URlCUYyjKpgYAKSgOBSCDEuGDKgrAtC3Q/R+hkPJEDgYCjpKr5A8WK9OaPFZwHoPqm3366VKyeRt
E30tVVRscMHDqV/u+AgAIfkEBWQACAAsAAAAABQADwAABBIQyUmrvTjrzbv/YCiOZGmeaAQAIfkE
CRQACAAsAgABABAADQAABEoQIUOrpXIOwrsPxiQUheeRAgUA49YNhbCqK1kS9grQhXGAhsDBUJgZ
AL2Dcqkk7ogFpvRAokSn0p4PO6UIuUsQggSmFjKXdAgRAQAh+QQFCgAIACwAAAAAFAAPAAAEEhDJ
Sau9OOvNu/9gKI5kaZ5oBAAh+QQJFAAIACwCAAEAEAANAAAEShAhQ6ulcg7Cuw/GJBSF55ECBQDj
1g2FsKorWRL2CtCFcYCGwMFQmBkAvYNyqSTuiAWm9ECiRKfSng87pQi5SxCCBKYWMpd0CBEBACH5
BAVkAAgALAAAAAAUAA8AAAQSEMlJq7046827/2AojmRpnmgEADs=

--------------Boundary-00=_G31WG6G0000000000000--