github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/element/attrs/set_many.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 color = "rgb(66, 66, 66)" 6 7 WAIT_ELEMENT(doc, pageSelector) 8 9 LET el = ELEMENT(doc, elemSelector) 10 11 ATTR_SET(el, { 12 style: "color:" + color, 13 "data-ferret-x": "test" 14 }) 15 16 T::EQ(el.attributes.style.color, color) 17 T::EQ(el.attributes["data-ferret-x"], "test") 18 19 RETURN TRUE