History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: WT-328
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Assignee: Marc Guillemot
Reporter: Marc Guillemot
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
WebTest

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

Created: 10/Sep/07 11:00:46   Updated: 10/Sep/07 13:51:52
Affects Version/s: None
Fix Version/s: 2.6


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

 All   Comments   Change History      Sort Order:
Comment by Marc Guillemot [10/Sep/07 13:51:52]
Fixed in build 1607.