github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/inner_html/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')
     4  
     5  WAIT_ELEMENT(doc, "#layout")
     6  
     7  LET expected = '<div><h1>Welcome to Ferret E2E test page!</h1></div><div><p class="lead">It has several pages for testing different possibilities of the library</p></div>'
     8  LET actual = INNER_HTML(doc, selector)
     9  
    10  RETURN T::EQ(REGEX_REPLACE(TRIM(actual), '(\n|\s)', ''), REGEX_REPLACE(expected, '\s', ''))