github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/doc/iframes/element_exists.fql (about) 1 LET url = @lab.cdn.dynamic + "?redirect=/iframe" 2 LET page = DOCUMENT(url, { driver: 'cdp' }) 3 4 LET frames = ( 5 FOR f IN page.frames 6 FILTER f.name == "nested" 7 LIMIT 1 8 RETURN f 9 ) 10 11 LET doc = FIRST(frames) 12 13 T::NOT::NONE(doc) 14 T::TRUE(ELEMENT_EXISTS(doc, '.text-center')) 15 T::FALSE(ELEMENT_EXISTS(doc, '.foo-bar')) 16 17 RETURN NONE