1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-31 01:53:36 +02:00
ferret/e2e/tests/doc_cookie_get_d.fql
Tim Voronov 71c246dd17
Feature/#236 cookies (#242)
* Added KeepCookies option to CDP driver

* Added LoadDocumentParams

* Added COOKIE_GET and COOKIE_SET methods
2019-03-15 19:59:05 -04:00

10 lines
249 B
Plaintext

LET url = @dynamic
LET doc = DOCUMENT(url, {
driver: "cdp"
})
LET cookiesPath = LENGTH(doc.cookies) > 0 ? "ok" : "false"
LET cookie = COOKIE_GET(doc, "x-ferret")
LET expected = "ok e2e"
RETURN EXPECT(expected, cookiesPath + " " + cookie.value)