github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/wait/no_attr_by_xpath.fql (about)

     1  LET url = @lab.cdn.dynamic + "?redirect=/events"
     2  LET doc = DOCUMENT(url, true)
     3  
     4  WAIT_ELEMENT(doc, "#page-events")
     5  
     6  // with fixed timeout
     7  CLICK(doc, "#wait-no-class-btn")
     8  WAIT(1000)
     9  PRINT(ATTR_GET(ELEMENT(doc, "#wait-no-class-content"), "class"))
    10  WAIT_NO_ATTR(doc, X("//*[@id='wait-no-class-content']"), "class", "alert alert-success")
    11  
    12  // with random timeout
    13  CLICK(doc, "#wait-no-class-random-btn")
    14  WAIT_NO_ATTR(doc, X("//*[@id='wait-no-class-random-content']"), "class", "alert alert-success", 10000)
    15  
    16  RETURN NONE