1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/e2e/tests/dynamic/element/parent/get.fql
Tim Voronov 8629b57fa7
Added GetParentElement to HTMLElement struct (#571)
* Added GetParentElement to HTMLElement struct

* Fixed linter issue

* Fixed formatting
2020-11-20 23:09:12 -05:00

9 lines
214 B
Plaintext

LET doc = DOCUMENT(@lab.cdn.dynamic + "/#/lists", { driver:"cdp" })
LET child = ELEMENT(doc, ".track-list")
LET parent = child.parentElement
T::NOT::NONE(parent)
T::EQ(parent.attributes.id, "tracks")
RETURN NONE