mirror of
https://github.com/MontFerret/ferret.git
synced 2024-12-16 11:37:36 +02:00
ff8c15eb67
* Added support of getting URL dynamically
12 lines
276 B
Plaintext
12 lines
276 B
Plaintext
LET url = @lab.cdn.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"
|
|
|
|
T::LEN(doc.cookies
|
|
|
|
RETURN T::EQ(cookiesPath + " " + cookie.value, expected) |