LET url = @dynamic LET doc = DOCUMENT(url, true) LET selector = '#root > div > main > div' WAIT_ELEMENT(doc, "#layout") LET expected = '

Welcome to Ferret E2E test page!

It has several pages for testing different possibilities of the library

' LET actual = INNER_HTML(doc, selector) RETURN EXPECT(REGEXP_REPLACE(expected, '\s', ''), REGEXP_REPLACE(TRIM(actual), '(\n|\s)', ''))