Skip to content Skip to sidebar Skip to footer

Integration Testing Html Special Characters

Kind of a strange one, but in my views I have a tick (✔) and a cross (×) used as links (in lieu of images). Is there any way of finding these elements and testing them using RSp

Solution 1:

Capybara doesn't see the HTML, it runs thru the DOM, which then sees the actual values those things encode. You must send the raw code as a UTF-{8,16} string containing the code point itself.

Most languages would present an HTML '✔' as "\u10004", so try that.

Post a Comment for "Integration Testing Html Special Characters"