[Webtest] How to perform submit form w/o submit button ?
david
webtest@lists.canoo.com
Fri, 31 Jan 2003 23:39:48 +0800
This is a multi-part message in MIME format.
------=_NextPart_000_0076_01C2C982.0AC30680
Content-Type: text/plain;
charset="big5"
Content-Transfer-Encoding: quoted-printable
I have the following form. Form submit is done via a button's onclick =
event to trigger a javascript to submit form.
Question are:
1/ Webtest is not able to find this button.
2/ How can I submit form directly w/o using clickbutton ?=20
<form id=3D"form_Logon" name=3D"form_Logon" method=3D"post" =
action=3D"Logon.jsp">
<TABLE class=3D"header1" style=3D"width:100%; border: thin groove" =
cellspacing=3D"1">
<TR>
<TD colspan=3D"2"><input id=3D"Button_Logon" name=3D"Button_Logon"=20
type=3D"button" value=3D"Logon" class=3D"button" onclick=3D"javascript : =
document.form_Logon.submit()"></TD>
</TR>
</TABLE>
<TABLE class=3D"header1" style=3D"width:100%; border: thin groove" =
cellspacing=3D"1">
</TABLE>
</form>
------=_NextPart_000_0076_01C2C982.0AC30680
Content-Type: text/html;
charset="big5"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dbig5">
<META content=3D"MSHTML 6.00.2800.1126" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I have the following form. Form submit =
is done via=20
a button's onclick event to trigger a javascript to submit =
form.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Question are:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>1/ Webtest is not =
able to find=20
this button.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2/ </FONT><FONT =
face=3DArial=20
size=3D2>How can I submit form directly w/o using clickbutton ? =
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2><form id=3D"form_Logon" =
name=3D"form_Logon"=20
method=3D"post" action=3D"Logon.jsp"><BR><TABLE class=3D"header1"=20
style=3D"width:100%; border: thin groove"=20
cellspacing=3D"1"><BR><TR><BR><TD colspan=3D"2"><input =
id=3D"Button_Logon" name=3D"Button_Logon" <BR>type=3D"button" =
value=3D"Logon"=20
class=3D"button" onclick=3D"javascript :=20
document.form_Logon.submit()"></TD><BR></TR><BR></TABLE=
></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><TABLE class=3D"header1" =
style=3D"width:100%;=20
border: thin groove"=20
cellspacing=3D"1"><BR></TABLE><BR></form></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML>
------=_NextPart_000_0076_01C2C982.0AC30680--