Closed iridesc closed 1 week ago
The data structures you are using seem not aligning to what Playwright expects, hence its not adding any cookies. Have you tried the following?
{
"cookies": [
{
"name": "ABC",
"value": "1111",
"domain": ".test.com",
"path": "/",
"expires": 1755849293.606346,
"httpOnly": false,
"secure": false,
"sameSite": "Lax"
}
]
}
Closing as part of the triage process since it seemed stale. Please create a new issue with a detailed reproducible or feature request if you still face issues.
Version
1.45.1
Steps to reproduce
Expected behavior
use code like :
can print:
Actual behavior
output:
Additional context
the cookie provided by storage_state in new_context not load. but if i use add_cookies method worked fine: code:
output:
Environment