Bugs item #1721230, was opened at 2007-05-18 12:41
Message generated for change (Comment added) made by henryju
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: Closed
>Resolution: Out of Date
Priority: 5
Private: No
Submitted By: Carlo Possati (carlo_possati)
>Assigned to: Julien HENRY (henryju)
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.


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

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

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

If you still have this problem could you please provide additional
information to reproduce (both HTML and Java code).

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

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 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