yes .But that is something i cannot do .
I tried using the Button.click() in httpunit .I have a line after this
 where i say assertTextNotPresent("string") .the assertion fails and
the message i see is that text found in response when not expected .I
did a dumpResponse() and found that i was actually on the same page.
Is there any problem with httpunit's button.click() because i should
have navigated to a new page in the webapp .

On 3/3/06, Nilesh Trivedi <[EMAIL PROTECTED]> wrote:
> 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
>
>


--
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?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to