storeInputFieldAttribute gets the wrong value when a form has multiple fields
with the same name
------------------------------------------------------------------------------------------------
Key: WT-517
URL: http://webtest-community.canoo.com/jira/browse/WT-517
Project: WebTest
Type: Bug
Versions: 2.6
Reporter: Chris Carman
Attachments: inline1.html, inline1.xml
The "storeInputFieldAttribute" operation gets the wrong value when it is tried
against a form in which multiple fields have the same name.
The attached test uses "storeInputFieldAttribute" and "storeElementAttribute"
to examine whether 2 checkboxes are disabled in the attached html source. In
both cases where "storeInputFieldAttribute" is used, it returns a value of
"false", despite the fact that the second checkbox is clearly disabled.
This appears to be due to the fact that
a) "storeInputFieldAttribute" does not accept an "htmlId" parameter
and
b) there are two fields in the source html that both have the "name" that
is specified in the call to "storeInputFieldAttribute":
<td><INPUT TYPE="hidden" NAME=2 VALUE=0><INPUT TYPE="checkbox" NAME=2
id="2" VALUE=1></td><td>Aha!</td>
<td><INPUT TYPE="hidden" NAME=4 VALUE=0><INPUT DISABLED TYPE="checkbox"
NAME=4 id="4" VALUE=1></td><td>Oho!</td>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest