mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-12 11:15:14 +02:00
82f7317ebe
* Added WAIT_ATTR functions
14 lines
349 B
Plaintext
14 lines
349 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, "data-test", "test")
|
|
WAIT_ATTR(el, "data-test", "test")
|
|
|
|
ATTR_REMOVE(el, "class")
|
|
WAIT_ATTR(el, "class", NONE)
|
|
|
|
RETURN el.attributes.class == NONE ? "" : "attribute should be removed" |