mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
18 lines
406 B
Plaintext
18 lines
406 B
Plaintext
|
LET url = @dynamic + "?redirect=/events"
|
||
|
LET doc = DOCUMENT(url, true)
|
||
|
|
||
|
WAIT_ELEMENT(doc, "#page-events")
|
||
|
|
||
|
LET el = ELEMENT(doc, "#wait-class-content")
|
||
|
|
||
|
ATTR_SET(el, "style", "color: black")
|
||
|
WAIT_STYLE(el, "color", "black")
|
||
|
|
||
|
LET prev = el.style
|
||
|
|
||
|
ATTR_REMOVE(el, "style")
|
||
|
WAIT_STYLE(el, "color", NONE)
|
||
|
|
||
|
LET curr = el.style
|
||
|
|
||
|
RETURN prev.color == "black" && curr.color == NONE ? "" : "style should be removed"
|