'have.text' and 'have.html' ignore Special characters #24902
Unanswered
noudadrichem
asked this question in
Questions and Help
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
tl;dr;
Is there any other way to get the 'raw' text/html of a node beside
have.html
?I'm stuck on an assertion that is in a scenario that I have to implement. We're adding hyphenation to text where the HTML will end up looking like this:
The problem now is that when using an assertion like this:
Will fail because of this:
It removes the
­
. So I investigated a bit further. But this also happens with&
and€
.I'd expect
have.html
to get the 'raw' values of a node. Any flags on this function that I'm missing?I'm kinda stuck here.. Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions