github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/inner_text/get_by_css.fql (about)

     1  LET url = @lab.cdn.dynamic
     2  LET doc = DOCUMENT(url, true)
     3  LET selector = '#root > div > main > div h1'
     4  
     5  WAIT_ELEMENT(doc, "#layout")
     6  
     7  LET expected = 'Welcome to Ferret E2E test page!'
     8  LET actual = INNER_TEXT(doc, selector)
     9  
    10  RETURN T::EQ(REGEX_REPLACE(TRIM(actual), '(\n|\s)', ''), REGEX_REPLACE(expected, '\s', ''))