maestro
maestro copied to clipboard
ClearState doesn’t work in Web test
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
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