Bugs item #1250775, was opened at 2005-08-03 07:29
Message generated for change (Comment added) made by henryju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1250775&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: HttpUnit plugin
Group: Release 1.2
>Status: Closed
Resolution: None
Priority: 5
Submitted By: richmondte (richmondte)
>Assigned to: Julien HENRY (henryju)
Summary: Checkbox causes exception

Initial Comment:
When a jsp have the following attributes, the method
checkCheckbox() causes an exception as it gets confused:

JSP snippet:

<html:checkbox property="option" /> 
<input type="hidden" name="option" value="false">

BTW, this is a struts page.

What happens is that JWebUnit gets confused with the
hidden type with the same name, as the error is that it
is expecting a value of "false" eventhough the test is
trying to set the checkbox and not the hidden type.

The same name is required. There should be a way to
distinguish between a hidden type and a checkbox type
regardless of the name.???



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

>Comment By: Julien HENRY (henryju)
Date: 2006-06-21 15:43

Message:
Logged In: YES 
user_id=1235926

HttpUnit cannot make the difference between form parameter
with the same name.
Use HtmlUnit plugin instead.

Test case added to show this problem.

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

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


_______________________________________________
Jwebunit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to