session_fixture
Save and restore browser session data (localStorage, sessionStorage, cookies) to named fixtures, preserving logged-in states for reuse across tests or manual sessions.
Instructions
Snapshot localStorage, sessionStorage and cookies of the current origin into a named fixture on the server, restore one, or list what has been saved. A logged-in state is the usual reason. save overwrites a fixture of the same name without asking; restore writes entries on top of what is already there rather than clearing first, and refuses outright when the tab sits on a different origin than the one recorded — cookies would otherwise attach to the wrong site. name is required except for list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Required for save/restore | |
| action | Yes | save snapshots the current origin; restore writes it back | |
| tab_id | No | Target tab; omitted = last tab navigated in this session, else the active one |