[Webtest] [webtest][JIRA] Created: (WT-328) Fix usage of clickButton's label attribute to identify button's "visible text"

Paul King Paul King <paulk@asert.com.au>
Mon, 10 Sep 2007 19:31:53 +1000


Marc Guillemot (JIRA) wrote:
> 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.

+1

The old behaviour has been hard to explain to newcomers to WebTest.
The proposed behaviour will be much easier to explain. Well, perhaps
not easier to explain but hopefully will need explanation less often.

Paul.