Bugs item #1710809, was opened at 2007-05-01 13:56
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=1710809&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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Joe Fisher (joebfisher)
Assigned to: Nobody/Anonymous (nobody)
Summary: Pages with multiple forms but same input id's
Initial Comment:
When searching for id's in forms, rather then getting the input from the form
set by setWorkingForm(), assertFormElementPresent searches all forms. It should
search the selected form.
...
public boolean hasFormParameterNamed(String paramName) {
if (hasFormSelectNamed(paramName))
return true;
--> return hasFormInputNamed(paramName);
}
calls
...
private HtmlForm getFormWithInput(String inputName) {
if (hasForm()) {
for (int i = 0; i < getForms().size(); i++) {
HtmlForm form = (HtmlForm) getForms().get(i);
List inputElements = form.getHtmlElementsByAttribute("input",
"name", inputName);
if (inputElements.isEmpty()) {
inputElements = form.getTextAreasByName(inputName);
}
if (!inputElements.isEmpty()) {
setWorkingForm(form);
return form;
}
}
}
return null;
}
I will try to submit a fix later
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1710809&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