1
0
mirror of https://github.com/MontFerret/ferret.git synced 2025-01-22 03:39:08 +02:00

18 lines
447 B
Plaintext
Raw Normal View History

LET url = @lab.cdn.dynamic + "?redirect=/iframe&src=/events"
LET page = DOCUMENT(url, { driver: 'cdp' })
LET frames = (
FOR f IN page.frames
FILTER f.name == "nested"
LIMIT 1
RETURN f
)
LET doc = FIRST(frames)
WAIT_ELEMENT(doc, "#page-events")
HOVER(doc, "#hoverable-btn")
WAIT_ELEMENT(doc, "#hoverable-content")
LET output = INNER_TEXT(doc, "#hoverable-content")
RETURN T::EQ(output, "Lorem ipsum dolor sit amet.")