mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
7eed93721c
* Added support of computed styles * Updated style updates * Fixed linter issues * Updated styles manipulation in static driver * Updated e2e tests * Updated methods * Updated e2e tests * Updated README
20 lines
408 B
Plaintext
20 lines
408 B
Plaintext
LET url = @lab.cdn.dynamic + "?redirect=/events"
|
|
LET doc = DOCUMENT(url, { driver: "cdp" })
|
|
LET pageSelector = "#page-events"
|
|
LET elemSelector = "#wait-no-style-content"
|
|
|
|
WAIT_ELEMENT(doc, pageSelector)
|
|
LET el = ELEMENT(doc, elemSelector)
|
|
|
|
LET prev = el.attributes.style
|
|
|
|
STYLE_REMOVE(el, "display")
|
|
|
|
WAIT(1000)
|
|
|
|
LET curr = el.attributes.style
|
|
|
|
T::EQ(prev.display, "block")
|
|
T::NONE(curr.display)
|
|
|
|
RETURN NONE |