Bugs item #1721230, was opened at 2007-05-18 12:41
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=1721230&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Carlo Possati (carlo_possati)
Assigned to: Nobody/Anonymous (nobody)
Summary: assertTextFieldEquals
Initial Comment:
I have a problem with the method assertTextFieldEquals.
In a form i have an input text named "ricerca" but jwebunit doesn't find it.
The error is:
junit.framework.AssertionFailedError: Did not find form element with name
[ricerca].
Logging htmlunit sources i saw that the calling method sequence is:
- getTestingEngine().hasFormParameterNamed(formElementName)
- hasFormSelectNamed(paramName)
- getFormWithSelect(selectName)
- form.getSelectByName(selectName)
but the javadoc of thid method is:
/**
* Find the first select element with the specified name
* @param name The name of the select element
* @return The first select.
* @throws ElementNotFoundException If the select cannot be found.
*/
It looks strange, because i'm looking for an input element name and this method
returns a select elementso my assert fails.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1721230&group_id=61302
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development