Delete cookies
The Delete cookies step allows you to remove browser cookies during a test. You can either delete a specific cookie by name or clear all cookies at once.
Cookies often control session state, authentication, consent banners, personalisation, and feature flags. Being able to reset or remove them gives you precise control over how your test behaves.
Reset user state instantly
Clearing cookies is a fast way to simulate a fresh user session without restarting the browser.
Common use cases include:
Logging a user out without navigating through a logout flow
Resetting consent or cookie banners
Testing first-time visitor experiences
Removing A/B test variants
Clearing feature flag assignments
Simulating a brand-new session mid-test
Instead of duplicating entire flows to recreate a clean state, you can reset cookies in one step and continue testing.
Improve reliability in complex flows
Long-running tests or branching journeys can accumulate state over time. Deleting cookies ensures previous steps do not unintentionally affect later assertions.
This is especially useful when:
Testing guest and logged-in journeys in the same flow
Switching between user roles
Validating session timeout behaviour
Checking redirect logic based on authentication
By explicitly managing cookies, you remove hidden state and make your tests more predictable.
Pair with local and session storage control
For complete browser state control, this step works well alongside:
Delete local storage
Delete session storage
Set local storage
Set session storage
Together, these allow you to simulate almost any client-side scenario without rebuilding environments or restarting runs.
Managing cookies deliberately helps you test real-world behaviour with