LET url = @dynamic + "?redirect=/events" LET doc = DOCUMENT(url, true) WAIT_ELEMENT(doc, "#page-events") // with fixed timeout LET b1 = ELEMENT(doc, "#wait-class-btn") LET c1 = ELEMENT(doc, "#wait-class-content") CLICK(b1) WAIT_CLASS(c1, "alert-success") // with random timeout LET b2 = ELEMENT(doc, "#wait-class-random-btn") LET c2 = ELEMENT(doc, "#wait-class-random-content") CLICK(b2) WAIT_CLASS(c2, "alert-success", 10000) RETURN ""