Hi All,

I am trying to submit a form which has a submit button
of this kind

<input type="image" name="submit"
src="http://myserver/images/common/btn-login.gif";
alt="Login">

How can I simulate the form submission using the
jwebunit framework ?

The form looks like this:

<form name="loginForm" method="POST"
action="/singles/servlet/login/submit">                     
                    <!-- Login Username and Password-->
                    <table border="0" width="60%" cellpadding="4"
cellspacing="0" class="text_12blk">
                          <tr>
                            <td width="15%" align="right"
nowrap><strong>Email or Username:</strong></td>
                            <td width="85%"><input type="text"
name="j_username" size="25" value=""></td>

                          </tr>
                          <tr>
                            <td
align="right"><strong>Password:</strong></td>
                            <td><input type="password" name="j_password"
size="25" value=""></td>
                          </tr>
                          <tr>
                            <td></td>
                            <td align="right"><input type="image"
name="submit"
src="http://myserver/static/images/common/btn-login.gif";
alt="Login"></td>
                          </tr>
                    </table>                  
</form>

AP

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to