github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/wait/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", "width: 200px")
    10  
    11          RETURN NONE
    12  )
    13  
    14  WAIT_STYLE_ALL(doc, selector, "width", "200px", 10000)
    15  
    16  LET results = (
    17      FOR el IN ELEMENTS(doc, selector)
    18          RETURN el.style.width
    19  )
    20  
    21  T::EQ(results, ["200px","200px"])
    22  
    23  RETURN NONE