Bugs item #1996207, was opened at 2008-06-17 17:00
Message generated for change (Settings changed) made by henryju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1996207&group_id=61302

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core API
Group: Release 1.5
>Status: Deleted
>Resolution: Duplicate
Priority: 5
Private: No
Submitted By: Victor (vceban1)
Assigned to: Nobody/Anonymous (nobody)
Summary: clickRadioOption does not work as expected

Initial Comment:
We have a web page where the JWebUnit seems not to be able to select a radio 
button. Here is the html

HTML code

<tr>
   <td class="answerOpt" valign="top">
     <input type="radio" name="coreAnswers['0-1'].strAnswer" value="1" 
id="c_0-1-1"  />
   </td>
   <td class="answerLabel" valign="top">
      <label for="c_0-1-1">Yes</label>                             </td>
</tr>

here is the Java code

String option1 = "coreAnswers['0-1'].strAnswer";                
tester.assertRadioOptionPresent(option1, "1");          
tester.clickRadioOption(option1, "1");
tester.assertRadioOptionSelected(option1, "1");

The error message we receive is this
"<![CDATA[ Unexpected state: no radio button was selected in radio group 
[coreAnswers['0-1'].strAnswer]. Is it possible in a real browser?
  ]]> "

I have tried replacing '0-1' with \'0-1\' and ''0-1'' thinking that may be that 
confuses the framework. That did not help. 

Any help would be appreciated.

Victor



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1996207&group_id=61302

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to