github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/element/query/exists_by_xpath.fql (about) 1 LET url = @lab.cdn.static + '/value.html' 2 LET doc = DOCUMENT(url) 3 4 LET el = ELEMENT(doc, "#listings_table") 5 6 T::TRUE(ELEMENT_EXISTS(el, X("//*[contains(@class, 'odd')]"))) 7 T::FALSE(ELEMENT_EXISTS(el, X("//*[contains(@class, 'foo-bar')]"))) 8 9 RETURN NONE