github.com/MontFerret/ferret@v0.18.0/e2e/tests/dynamic/page/cookies/get.fqlx (about)

     1  LET url = @lab.cdn.dynamic
     2  LET doc = DOCUMENT(url, {
     3      driver: "cdp"
     4  })
     5  
     6  LET cookiesPath = LENGTH(doc.cookies) > 0 ? "ok" : "false"
     7  LET cookie = COOKIE_GET(doc, "x-ferret")
     8  LET expected = "ok e2e"
     9  
    10  T::LEN(doc.cookies, 1)
    11  
    12  RETURN T::EQ(cookiesPath + " " + cookie.value, expected)