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

     1  LET url = @lab.cdn.dynamic
     2  LET doc = DOCUMENT(url, { driver: "cdp" })
     3  LET selector = X('.//*[@id="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', ''))