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

     1  LET doc = DOCUMENT(@lab.cdn.dynamic + "/#/lists", { driver:"cdp" })
     2  
     3  LET current = ELEMENT(doc, ".track")
     4  T::NOT::NONE(current)
     5  LET next = current.nextElementSibling
     6  T::NOT::NONE(next)
     7  
     8  LET currentIdx = TO_INT(current.attributes['data-index'])
     9  LET nextIdx = TO_INT(next.attributes['data-index'])
    10  T::GT(nextIdx, currentIdx)
    11  
    12  RETURN NONE