[Webtest] Problem with clicklink.
Aatish Arora
webtest@lists.canoo.com
Fri, 1 Aug 2003 02:37:50 -0700 (PDT)
Hi Dilip,
I dont think Javascript on clicklink is yet supported
- atleast wasnt till some time back
Cheers!
Aatish
--- Dilip N Palukuri <ndilip@merindus.com> wrote:
> Hello Techies,
>
> I've got stuck trying to submit a form that relies
> on JavaScript for
> submission. I am using clicklink to submitt the form
> (Code follows)
>
> <clicklink stepid="Follow the link to the next page"
> label=""
> save="myResultPage"
> href="javascript:loadFrms();"/>
>
>
>
> Build was successfull with the following message
>
> [testSpec] Start Step: Follow the link to the next
> page" (5/7)
> [testSpec] -> gotoTarget(by url):
> javascript:loadFrms();
> [testSpec] Completed Step: Follow the link to the
> next page" (5/7)
> [testSpec] Start Step: Home Page follows if login
> success" (6/7)
> [testSpec] Completed Step: Home Page follows if
> login success" (6/7)
> [testSpec] Start Step: [implicit tear down step]"
> (7/7)
> [testSpec] Completed Step: [implicit tear down
> step]" (7/7)
> [testSpec] Report class:
> com.canoo.webtest.reporting.XmlReporter
>
> the results page shows the same page where hyperlink
> exists insted of next
> page. Following is the relavent part of script, the
> link I tried to click is
> highlighted.
>
>
> <script language="javascript">
> <body
>
onload="javascript:document.forms[0].elements[0].focus();">
> <form name="frmLogin">
> ....
> .....
> .......
> .........
>
> <td colspan="2"
> background="images/loginbox_btnbg.jpg" width="305"
> height="31" align="center"><a
> href="javascript:loadFrms();"><img src=
> images/login_btn.gif" border="0"></a> <a
> href=
>
javascript:document.forms[0].reset();document.forms[0].elements[0].focus();
> ><img src="images/reset_btn.gif"
> border="0"></a></td>
>
>
> Shall be looking for help
>
> Thanks
>
> Dilip
=====
========================
THE FOUR STAGES OF LIFE:
1) You believe in Santa Claus.
2) You don't believe in Santa Claus.
3) You are Santa Claus.
4) You look like Santa Claus.
========================
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com