#302 new
Martin Emde

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 &amp; Restart</button>

It doesn't match correctly:

    find_button("Erase & Restart") # Does not match
    find_button("Erase &amp; Restart") # Matches (but is nasty)

Note that this works as expected with the following html:

    <input type="submit" value="Erase &amp; Restart">

Simple fix is in my branch.

Comments and changes to this ticket

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.

New-ticket Create new ticket

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.

Shared Ticket Bins

People watching this ticket