mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-30 04:30:51 +02:00
90427cd537
* Added remote type reference resolver * Added support of XPath query selector * Added CDP e2e testss covering XPath integration * Added additional CDP e2e tests covering XPath integration * Added type check to QuerySelector casting function * Fixed XPath e2e tests * Fixed vuln issue * Added support of XPath selectors to http driver * Added e2e tests for XPAth
24 lines
543 B
Plaintext
24 lines
543 B
Plaintext
LET url = @lab.cdn.dynamic + "?redirect=/events"
|
|
LET doc = DOCUMENT(url, true)
|
|
LET selector = "#wait-class-btn"
|
|
|
|
WAIT_ELEMENT(doc, "#page-events")
|
|
|
|
LET el = ELEMENT(doc, selector)
|
|
|
|
STYLE_SET(el, "color", "green")
|
|
WAIT(200)
|
|
|
|
WAIT_STYLE(doc, selector, "color", "rgb(0, 128, 0)")
|
|
|
|
LET prev = el.style
|
|
|
|
STYLE_SET(el, "color", "red")
|
|
WAIT_NO_STYLE(doc, selector, "color", "rgb(0, 128, 0)")
|
|
WAIT_STYLE(doc, selector, "color", "rgb(255, 0, 0)")
|
|
LET curr = el.style
|
|
|
|
T::EQ(prev.color, "rgb(0, 128, 0)")
|
|
T::EQ(curr.color, "rgb(255, 0, 0)")
|
|
|
|
RETURN NONE |