Fix usage of clickButton's label attribute to identify button's "visible text"
------------------------------------------------------------------------------

         Key: WT-328
         URL: http://webtest-community.canoo.com/jira/browse/WT-328
     Project: WebTest
        Type: Bug

    Reporter: Marc Guillemot
 Assigned to: Marc Guillemot 


clickButton's label attribute is currently use to match the value attribute of 
the button. This text is correctly the "label" of submit buttons for instance 
but not of <input type="image"...> and of <button>...</button>.

clickButton should be changed to use label to match:
- the alt text for a <input type="image".../> (like clickLink does)
- the node's text for a <button...>some text</button>
- the value attribute for the other types of button

CAUTION: this may break existing tests relying on this strange behavior.

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

Reply via email to