github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/wait/no_style_all_by_xpath.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/events" 2 LET doc = DOCUMENT(url, true) 3 LET selector = X("//*[@id='wait-class-btn' or @id='wait-class-random-btn']") 4 5 WAIT_ELEMENT(doc, "#page-events") 6 7 LET n = ( 8 FOR el IN ELEMENTS(doc, selector) 9 ATTR_SET(el, "style", "color: black") 10 11 RETURN NONE 12 ) 13 14 WAIT_STYLE_ALL(doc, selector, "color", "rgb(0, 0, 0)", 10000) 15 16 LET n2 = ( 17 FOR el IN ELEMENTS(doc, selector) 18 ATTR_SET(el, "style", "color: red") 19 20 RETURN NONE 21 ) 22 23 WAIT_NO_STYLE_ALL(doc, selector, "color", "rgb(0, 0, 0)", 10000) 24 25 LET results = ( 26 FOR el IN ELEMENTS(doc, selector) 27 RETURN el.style.color 28 ) 29 30 T::EQ(results, ["rgb(255, 0, 0)","rgb(255, 0, 0)"]) 31 32 RETURN NONE