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

     1  LET url = @lab.cdn.static + '/overview.html'
     2  LET doc = DOCUMENT(url)
     3  
     4  LET expected = [
     5  '<a href="#containers">Containers</a>',
     6  '<a href="#responsive-breakpoints">Responsive breakpoints</a>',
     7  '<a href="#z-index">Z-index</a>'
     8  ]
     9  LET actual = (
    10      FOR i IN INNER_HTML_ALL(doc, X("//*[contains(@class, 'section-nav')]/li"))
    11          RETURN TRIM(i)
    12  )
    13  
    14  RETURN T::EQ(actual, expected)