Delete session storage

Delete session storage

Delete session storage

Delete session storage

The Delete session storage step gives you direct control over browser session storage during your tests.

Modern web applications rely heavily on session storage to hold temporary data such as tokens, UI state, feature flags, and user-specific values. While useful in production, this stored data can affect how your tests behave if not managed deliberately.

This step allows you to remove specific session storage items or clear the entire session storage for the current browser context.

Remove specific keys

You can target and delete a single session storage key.

This is useful when:

  • Resetting authentication or temporary session tokens

  • Clearing feature flags between test steps

  • Removing state that would otherwise skip part of a journey

  • Forcing an application back into a specific state

Targeted deletion gives you precision without disrupting unrelated data.

Clear all session storage

You can also clear all session storage at once.

This is helpful when:

  • Simulating a fresh session mid-test

  • Reproducing first-visit behaviour

  • Testing fallback states

  • Ensuring no previous state leaks into a new scenario

Clearing storage is often faster and more reliable than rebuilding an entire session from scratch.

Improve test consistency

Session storage can introduce subtle behaviour changes across runs if left unmanaged.

By deliberately controlling stored values, you:

  • Prevent unexpected state persistence

  • Reduce flaky behaviour caused by residual data

  • Ensure consistent starting conditions

  • Validate how your application behaves without stored context

Works alongside other state controls

Delete session storage pairs well with:

  • Check session storage

  • Set value and Value Store operations

  • Browser reload and navigation steps

  • Authentication and MFA flows

Together, these steps give you full control over client-side state during automation.

Clean state. Predictable behaviour. Reliable results.