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

     1  LET url = @lab.cdn.static + '/list.html'
     2  LET doc = DOCUMENT(url)
     3  
     4  LET current = ELEMENT(doc, ".track")
     5  T::NOT::NONE(current)
     6  LET next = current.nextElementSibling.nextElementSibling
     7  T::NOT::NONE(next)
     8  
     9  LET currentIdx = TO_INT(current.attributes['data-index'])
    10  LET nextIdx = TO_INT(next.attributes['data-index'])
    11  T::GT(nextIdx, currentIdx)
    12  
    13  RETURN NONE