
clicks_link does not match html-escaped characters
Reported by ronin-6372 (at lighthouseapp) | October 26th, 2008 @ 09:36 PM
Example:
<a href='/a_page'>Save & go back</a>
Will not be clicked by:
clicks_link("Save & go back")
I would suggest keeping it simple and adding in support just for the ampersand character for now. It is the most common (especially in links) and it is the character that is used to start any escape sequence.
Comments and changes to this ticket
-
Bryan Helmkamp November 18th, 2008 @ 08:42 PM
- State changed from new to resolved
This was happening because Webrat was matching links with inner_html instead of inner_text, which was resolved in #56.
I've added an example specifically for the case you described, to ensure it stays working:
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.