maestro icon indicating copy to clipboard operation
maestro copied to clipboard

ClearState doesn’t work in Web test

Open build3r opened this issue 2 months ago • 2 comments

Is there an existing issue for this?

  • [x] I have searched the existing issues and didn't find mine.

Steps to reproduce

url: https://stateful_webapp.example.com/
tags: [webapp]
---


- launchApp:
    clearState: true

I have react which store certain preferences in localstorage and cookies.

Actual results

Fresh instance of my webapp

Expected results

I expected passing clearState will clear all storage and open a fresh launch. But looks like its currently a no-op.

About app

Stateful ReactWebapp, with persistent storage.

About environment

MacOS

Logs

Logs
<!-- Replace this line with your logs. *DO NOT* remove the backticks! -->

Maestro version

0.8.8

How did you install Maestro?

other (please specify in the text area below)

Anything else?

Using Maestro Studio

build3r avatar Oct 29 '25 15:10 build3r

MAE-317

linear[bot] avatar Oct 29 '25 15:10 linear[bot]

Looks like it's missing from Web's driver implementation right now... https://github.com/mobile-dev-inc/Maestro/blob/a54ab46fc061540276ac87b0adce79e8bb685f53/maestro-client/src/main/java/maestro/drivers/CdpWebDriver.kt#L307

Fishbowler avatar Nov 12 '25 13:11 Fishbowler