mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
d0caef8be7
* Added possibility to wait for an element or a class absence
14 lines
374 B
Plaintext
14 lines
374 B
Plaintext
LET url = @dynamic + "?redirect=/events"
|
|
LET doc = DOCUMENT(url, true)
|
|
|
|
WAIT_ELEMENT(doc, "#page-events")
|
|
|
|
// with fixed timeout
|
|
CLICK(doc, "#wait-no-class-btn")
|
|
WAIT_NO_CLASS(doc, "#wait-no-class-content", "alert-success")
|
|
|
|
// with random timeout
|
|
CLICK(doc, "#wait-no-class-random-btn")
|
|
WAIT_NO_CLASS(doc, "#wait-no-class-random-content", "alert-success", 10000)
|
|
|
|
RETURN "" |