Simplest way is to add "id" attribute in the html for corresponding <input> tag. Then in the testcase, call clickButton(String buttonId). But this involves modifying the source of webapp that you are testing..

cheers
nilesh


On 3/3/06, Sreedhar Kharidehal <[EMAIL PROTECTED]> wrote:
Hi i have 2 buttons in my page one of type="submit" name="Submit" and
other of type "button" name="cancel"

how can i click the button with type="button" name="cancel" in jwebunit.

Thanks
--
sreedhar


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to