github.com/MontFerret/ferret@v0.18.0/e2e/tests/static/element/attrs/get_by_xpath.fql (about)

     1  LET url = @lab.cdn.static + '/overview.html'
     2  LET doc = DOCUMENT(url)
     3  
     4  LET element = ELEMENT(doc, X("//body/header/a"))
     5  LET actual = XPATH(element, "string(@href)")
     6  LET expected = "http://getbootstrap.com/"
     7  
     8  T::EQ(actual, expected)
     9  
    10  RETURN NONE