github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/iframes/wait_class.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/iframe&src=/events" 2 LET page = DOCUMENT(url, true) 3 LET frames = ( 4 FOR f IN page.frames 5 FILTER f.name == "nested" 6 LIMIT 1 7 RETURN f 8 ) 9 LET doc = FIRST(frames) 10 11 WAIT_ELEMENT(doc, "#page-events") 12 13 // with fixed timeout 14 CLICK(doc, "#wait-class-btn") 15 WAIT_CLASS(doc, "#wait-class-content", "alert-success") 16 17 // with random timeout 18 CLICK(doc, "#wait-class-random-btn") 19 WAIT_CLASS(doc, "#wait-class-random-content", "alert-success", 10000) 20 21 RETURN ""