LET url = @dynamic + "?redirect=/iframe&src=/forms"
LET page = DOCUMENT(url, true)

LET frames = (
    FOR f IN page.frames
        FILTER f.name == "nested"
        LIMIT 1
        RETURN f
)
LET doc = FIRST(frames)

WAIT_ELEMENT(doc, "form")

LET output = ELEMENT(doc, "#text_output")

INPUT(doc, "#text_input", "foo")

RETURN EXPECT(output.innerText, "foo")