Hi,
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.
I wrong something?
Thank you.
Carlo Possati
-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users