Bugs item #1747033, was opened at 2007-07-03 04:36
Message generated for change (Comment added) made by mtc3b
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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carlo Possati (carlo_possati)
Assigned to: Nobody/Anonymous (nobody)
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: Mike (mtc3b)
Date: 2007-12-07 16: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

-------------------------------------------------------------------------
SF.Net email is sponsored by: 
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

Reply via email to