Try using:
/**
* Clicks a radio option. Asserts that the radio option exists first.
*
* * @param radioGroup
* name of the radio group.
* @param radioOption
* value of the option to check for.
*/
public void clickRadioOption(String radioGroup, String radioOption) {
See Ya,
Nick
> -----Original Message-----
> From: Murilo H. M. Foltran [mailto:[EMAIL PROTECTED]
> Sent: Thursday, May 12, 2005 2:47 PM
> To: [email protected]
> Subject: [Jwebunit-users] Question about submit forms
>
>
> Hi all,
>
> My english is more or less, so I hope you understand.
>
> I'm testing a html page which have a form.
>
> In this form exists a Javascript, this is a tree with
> radio buttons. In the test I need check a radio
> button.
>
> When the page is submitted, the Javascript put an
> attribute called 'radioDominio' with a code.
>
> I don't see how I set this attribute to submit.
>
> In my struts-config.xml, this action have this
> mapping.
>
> <!-- FormBean de ManterDominio -->
> <form-bean name="manterDominioForm"
> type="org.apache.struts.validator.DynaValidatorForm">
> <form-property type="java.lang.String"
> name="txtDominio"/>
> <form-property type="java.lang.Long"
> name="radioDominio"/>
> <form-property type="java.lang.Long"
> name="radioDominioPai"/> </form-bean>
>
> When I submit this page, I need set a property
> 'radioDomino'.
>
> How can I make this?
>
> Sorry by the english,
>
> Best Regards,
>
> Murilo
>
> __________________________________________________
> Converse com seus amigos em tempo real com o Yahoo! Messenger
> http://br.download.yahoo.com/messenger/
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Oracle Space Sweepstakes
> Want to be the first software developer in space?
> Enter now for the Oracle Space Sweepstakes!
> http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
> _______________________________________________
> Jwebunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
- - - - - -
This e-mail message is intended only for the use of the individual or entity
identified in the alias address of this message and may contain confidential
and privileged information. Any unauthorized review, use, disclosure or
distribution of this e-mail message is strictly prohibited. If you have
received this e-mail message in error, please notify the sender immediately
by reply e-mail and delete this message from your system. Thank you.
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users