robotframework / OldSeleniumLibrary

Deprecated Selenium library for Robot Framework
Apache License 2.0
13 stars 3 forks source link

Operating buttons created with `<button>` tag using visible text is not possible #157

Closed spooning closed 9 years ago

spooning commented 9 years ago

Originally submitted to Google Code by mika.bat... on 26 Nov 2010

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.

spooning commented 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 &lt;input type="button" value="match this"/&gt; has been possible also earlier. It's somewhat annoying that there's so many ways to create buttons in HTML.