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

     1  LET url = @lab.cdn.dynamic
     2  LET doc = DOCUMENT(url, true)
     3  LET selector = X('.//*[@id="root"]/div/main/div/*')
     4  
     5  WAIT_ELEMENT(doc, "#layout")
     6  
     7  LET expected = [
     8      'Welcome to Ferret E2E test page!',
     9      'It has several pages for testing different possibilities of the library'
    10  ]
    11  LET actual = (
    12      FOR str IN INNER_TEXT_ALL(doc, selector)
    13          RETURN REGEX_REPLACE(TRIM(str), '\n', '')
    14  )
    15  
    16  RETURN T::EQ(actual, expected)