github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/siblings/prev.fql (about) 1 LET doc = DOCUMENT(@lab.cdn.dynamic + "/#/lists", { driver:"cdp" }) 2 3 LET current = ELEMENT(doc, '[data-index="1"]') 4 T::NOT::NONE(current) 5 LET prev = current.previousElementSibling 6 T::NOT::NONE(prev) 7 8 LET currentIdx = TO_INT(current.attributes['data-index']) 9 LET prevIdx = TO_INT(prev.attributes['data-index']) 10 T::LT(prevIdx, currentIdx) 11 12 RETURN NONE