Very simple problem, but I can't seem to see what I'm doing wrong.

I get the following error:

junit.framework.AssertionFailedError: Button [cmdDisc] not found.
        at
net.sourceforge.jwebunit.WebTester.assertButtonPresent(WebTester.java:580)
        ...

when I do this:

        clickButton("cmdDisc");

on a page with this in it:

<input type="button" name="cmdDisc" value="Discretionary"
onclick='setType("discretionary")'/>


Am I missing something terribly obvious? Should I use something else as the
buttonId?


All I can find in the API is:

clickButton

public void clickButton(java.lang.String buttonId)


Any ideas?

- alasdair

Alasdair Young
This email has been scanned by Postini.
For more information please visit http://www.postini.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to