mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-23 01:24:30 +02:00
d7b923e4c3
* Refactored Virtual DOM structure * Added new E2E tests * Updated E2E Test Runner
23 lines
505 B
Plaintext
23 lines
505 B
Plaintext
LET url = @dynamic + "?redirect=/iframe&src=/events"
|
|
LET page = DOCUMENT(url, { driver: 'cdp' })
|
|
LET doc = page.frames[1]
|
|
|
|
WAIT_ELEMENT(doc, "#page-events")
|
|
|
|
// with fixed timeout
|
|
LET b1 = ELEMENT(doc, "#wait-class-btn")
|
|
LET c1 = ELEMENT(doc, "#wait-class-content")
|
|
|
|
WAIT(2000)
|
|
CLICK(b1)
|
|
|
|
WAIT_CLASS(c1, "alert-success")
|
|
|
|
// with random timeout
|
|
LET b2 = ELEMENT(doc, "#wait-class-random-btn")
|
|
LET c2 = ELEMENT(doc, "#wait-class-random-content")
|
|
|
|
CLICK(b2)
|
|
WAIT_CLASS(c2, "alert-success", 10000)
|
|
|
|
RETURN "" |