clicks_link does not match html-escaped characters
Reported by Fabio | 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:43 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 Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
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
