Closed spooning closed 9 years ago
Originally submitted to Google Code by @pekkaklarck on 13 Jan 2011
Thanks mika.batsman for the report and the patch. Sorry also for us ignoring this issue so long.
I created some tests that demonstrated this problem both with Click Button and Page Should Contain Button. The patch fixed these tests and both tests and the fix were committed in revision 3c671ecdfa.
Notice that operating buttons created like <input type="button" value="match this"/>
has been possible also earlier. It's somewhat annoying that there's so many ways to create buttons in HTML.
You can match to link text but not to button text.
<a href="foobar.html">match this</a> <button>match this</button>
Click link "match this" works but Click button "match this" doesn't.
Why not have the same logic in both.