mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-14 11:23:02 +02:00
71c246dd17
* Added KeepCookies option to CDP driver * Added LoadDocumentParams * Added COOKIE_GET and COOKIE_SET methods
14 lines
316 B
Plaintext
14 lines
316 B
Plaintext
LET url = @dynamic
|
|
LET doc = DOCUMENT(url, {
|
|
driver: "cdp",
|
|
cookies: [{
|
|
name: "x-e2e",
|
|
value: "test"
|
|
}]
|
|
})
|
|
|
|
LET cookiesPath = LENGTH(doc.cookies) > 0 ? "ok" : "false"
|
|
LET cookie = COOKIE_GET(doc, "x-e2e")
|
|
LET expected = "ok test"
|
|
|
|
RETURN EXPECT(expected, cookiesPath + " " + cookie.value) |