Closed adiel closed 9 years ago
so should normalise all white space in text to one space? text.trim().replace(/\s+/g, ' ')
It's as much about line breaks as whitespace. innerText gives you line breaks in the right place, then we normalise spaces incl at the beginning and end of a line.
This is what Selenium does internally somewhere
is expected to be "That's\n not\n right\n" when finding by / asserting on text