Set Web Storage
browser_set_storageSets localStorage and sessionStorage values on a specified origin to control application state for testing. Requires explicit acknowledgment of raw capture and credential access.
Instructions
Use when a full-profile authorized test explicitly needs controlled localStorage or sessionStorage values. Preconditions: acknowledgeRawCapture: true and acknowledgeCredentialAccess: true are required; target the intended origin and keys. Next: reload or navigate as needed to observe the application's reaction. Sensitivity: this changes potentially credential-bearing application state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | No | ||
| localStorage | No | ||
| sessionStorage | No | ||
| acknowledgeRawCapture | No | ||
| acknowledgeCredentialAccess | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |