LET url = @dynamic + "?redirect=/iframe" 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) LET expectedP = TRUE LET actualP = ELEMENT_EXISTS(doc, '.text-center') LET expectedN = FALSE LET actualN = ELEMENT_EXISTS(doc, '.foo-bar') RETURN EXPECT(expectedP + expectedN, actualP + expectedN)