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

     1  LET url = @lab.cdn.dynamic
     2  LET doc = DOCUMENT(url, true)
     3  LET el = ELEMENT(doc, ".jumbotron")
     4  
     5  LET expected = `
     6  Welcome to Ferret E2E test page!
     7  It has several pages for testing different possibilities of the library
     8  `
     9  LET actual = INNER_TEXT(el)
    10  
    11  LET r1 = '(\n|\s)'
    12  LET r2 = '(\n|\s)'
    13  
    14  RETURN T::EQ(REGEX_REPLACE(TRIM(actual), r2, ''), REGEX_REPLACE(expected, r1, ''))