github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/doc/inner_html/get_by_xpath.fql (about) 1 LET url = @lab.cdn.static + '/overview.html' 2 LET doc = DOCUMENT(url) 3 4 LET expected = '<li class="toc-entry toc-h2"><a href="#containers">Containers</a></li><li class="toc-entry toc-h2"><a href="#responsive-breakpoints">Responsive breakpoints</a></li><li class="toc-entry toc-h2"><a href="#z-index">Z-index</a></li>' 5 LET actual = INNER_HTML(doc, X("//[contains(@class, 'section-nav')]")) 6 7 RETURN T::EQ(REGEX_REPLACE(TRIM(actual), '(\n|\s)', ''), REGEX_REPLACE(expected, '\s', ''))