Bugs item #1747033, was opened at 2007-07-03 12:36
Message generated for change (Comment added) made by henryju
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1747033&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: HtmlUnit plugin
>Group: Release 1.5
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Carlo Possati (carlo_possati)
>Assigned to: Julien HENRY (henryju)
Summary: checkCheckBox

Initial Comment:
I have a problem with method checkCheckbox(String name)
if a use:

  <input type="checkbox" name="abiAllineamento" value="S"/>

and i call method checkCheckbox("abiAllineamento") everything is ok.
If the element is defined like with word checkbox in uppercase, like this:

  <input type="CHECKBOX" name="abiAllineamento" value="S"/>

calling method checkCheckbox("abiAllineamento") the result is:

Did not find form checkbox with name [abiAllineamento].


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

>Comment By: Julien HENRY (henryju)
Date: 2008-04-14 14:33

Message:
Logged In: YES 
user_id=1235926
Originator: NO

Will be fixed in 1.5

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

Comment By: Mike (mtc3b)
Date: 2007-12-08 00:37

Message:
Logged In: YES 
user_id=1954039
Originator: NO

I think this is a bug in jWebUnit.  HtmlUnit seems to ignore case whenever
trying to find HtmlElements.  I think the issue is that checkCheckbox()
calls assertCheckboxPresent(), which then uses an XPath expression to find
a matching element.  XPath appears to be case sensitive.  Of course, the
HTML above isn't XHTML compliant, but it is HTML 4.0 compliant, so I think
it should be supported.  <img> tags would be similarly affected as
assertImagePresent() also uses XPath.  I think there are other situations. 
HtmlUnitDialog.hasSubmitButton() also uses XPath, for example.

Of course, there is a simple solution -- write XHTML compliant pages and
keep all tags, attributes, and their values lower case.


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

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

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to