github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/attrs/remove.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/events" 2 LET doc = DOCUMENT(url, true) 3 LET pageSelector = "#page-events" 4 LET elemSelector = "#wait-no-style-content" 5 LET attrName = "data-e2e-test" 6 7 WAIT_ELEMENT(doc, pageSelector) 8 LET el = ELEMENT(doc, elemSelector) 9 ATTR_SET(el, attrName, "true") 10 11 LET prev = el.attributes[attrName] 12 13 ATTR_REMOVE(el, attrName) 14 15 LET curr = el.attributes[attrName] 16 17 T::EQ(prev, "true") 18 T::NONE(curr) 19 20 RETURN TRUE