mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
e17ce5a3d5
* Added WAIT_STYLE and WAIT_NO_STYLE * Added WAIT_NO_STYLE and WAIT_NO_STYLE_ALL functions
19 lines
462 B
Plaintext
19 lines
462 B
Plaintext
LET url = @dynamic + "?redirect=/events"
|
|
LET doc = DOCUMENT(url, true)
|
|
LET selector = "#wait-class-btn"
|
|
|
|
WAIT_ELEMENT(doc, "#page-events")
|
|
|
|
LET el = ELEMENT(doc, selector)
|
|
|
|
ATTR_SET(el, "style", "width: 100%")
|
|
WAIT_STYLE(doc, selector, "width", "100%")
|
|
|
|
LET prev = el.style
|
|
|
|
ATTR_SET(el, "style", "width: 50%")
|
|
WAIT_NO_STYLE(doc, selector, "width", "100%")
|
|
|
|
LET curr = el.style
|
|
|
|
RETURN prev.width == "100%" && curr.width == "50%" ? "" : "style should be changed" |