[Webtest] How to perform submit form w/o submit button ?
Aatish Arora
webtest@lists.canoo.com
Sat, 1 Feb 2003 02:25:39 -0800 (PST)
Hi David,
Webtest is not able to find the button as its is of
the type="button". Had it been of type ="Submit".
Webtest would have worked like a charm.
Mittie is working on the above I guess :). So soon the
problem should be tackled.
Now you could do 1 thing to automate it for the time
being. You could use a "invoke" to bring up the Next
page by using name value pairs.
For eg in ur case:
<invoke stepid="Login directly"
url="Logon.jsp?loginName='Foo'&password='Password'"/>
where LoginName and password are the values that u
pass thru the form.
Best of Luck
aatish
=========================================
"Knowledge is not power, it just means you have to do
all the work if you don't share it."
==========================================
--- david <davidl@net-yan.com> wrote:
> 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 ?
>
> <form id="form_Logon" name="form_Logon"
> method="post" action="Logon.jsp">
> <TABLE class="header1" style="width:100%; border:
> thin groove" cellspacing="1">
> <TR>
> <TD colspan="2"><input id="Button_Logon"
> name="Button_Logon"
> type="button" value="Logon" class="button"
> onclick="javascript :
> document.form_Logon.submit()"></TD>
> </TR>
> </TABLE>
>
> <TABLE class="header1" style="width:100%; border:
> thin groove" cellspacing="1">
> </TABLE>
> </form>
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com