Bugs item #1996207, was opened at 2008-06-17 11:00
Message generated for change (Tracker Item Submitted) made by Item Submitter
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: Open
Resolution: None
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
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development