github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/page/cookies/default.fqlx (about) 1 LET url = @lab.cdn.static + "/api/ts" 2 LET page = DOCUMENT(url, { 3 driver: "cdp_cookies" 4 }) 5 6 LET el = ELEMENT(page, "#cookies") 7 LET actual = ( 8 FOR c IN JSON_PARSE(el.innerText) 9 SORT c.Name 10 RETURN c 11 ) 12 13 LET expected = { 14 "Single_cookie": "single_cookie_value", 15 "Multi_set_cookie": "multi_set_cookie_value", 16 } 17 18 T::EQ({ 19 "Single_cookie": actual[2].Value, 20 "Multi_set_cookie": actual[0].Value, 21 }, expected) 22 23 24 RETURN NONE