mirror of
https://github.com/MontFerret/ferret.git
synced 2025-01-16 03:21:03 +02:00
71c246dd17
* Added KeepCookies option to CDP driver * Added LoadDocumentParams * Added COOKIE_GET and COOKIE_SET methods
14 lines
229 B
Plaintext
14 lines
229 B
Plaintext
LET url = @dynamic
|
|
LET doc = DOCUMENT(@dynamic, {
|
|
driver: "cdp"
|
|
})
|
|
|
|
COOKIE_SET(doc, {
|
|
name: "x-e2e",
|
|
value: "test"
|
|
})
|
|
|
|
LET cookie = COOKIE_GET(doc, "x-e2e")
|
|
LET expected = "test"
|
|
|
|
RETURN EXPECT(expected, cookie.value) |