LET url = @dynamic LET doc = DOCUMENT(url, true) LET el = ELEMENT(doc, ".jumbotron") LET expected = `Foobar` INNER_TEXT_SET(el, expected) WAIT(100) LET actual = INNER_TEXT(el) LET r1 = '(\n|\s)' LET r2 = '(\n|\s)' RETURN EXPECT(REGEXP_REPLACE(expected, r1, ''), REGEXP_REPLACE(TRIM(actual), r2, ''))