
find_button does not match buttons with html entities
Reported by Martin Emde | October 18th, 2009 @ 08:19 PM
Your auto-responder asked me to create a ticket here.
Commit: http://github.com/martinemde/webrat/commit/85b4a07be774d3209f463664...
Issue: http://github.com/brynary/webrat/issues#issue/29
I've fixed this in my branch at http://github.com/martinemde/webrat/commit/5bd2d1d22c5099f900d1dc14...
If you try to match
<button>Erase & Restart</button>
It doesn't match correctly:
find_button("Erase & Restart") # Does not match
find_button("Erase & Restart") # Matches (but is nasty)
Note that this works as expected with the following html:
<input type="submit" value="Erase & Restart">
Simple fix is in my branch.
Comments and changes to this ticket
-
Martin Emde October 18th, 2009 @ 08:20 PM
Er, pasted the wrong commit on the second link.. the top commit is the correct commit link.
http://github.com/martinemde/webrat/commit/85b4a07be774d3209f463664...
-
Martin Emde October 18th, 2009 @ 08:31 PM
- Tag set to bug, bugfix, patch
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Ruby Acceptance Testing for Web applications.