Cypress · Method
cy.getAllLocalStorage
Reads localStorage data for all origins used by the test. It can retry chained assertions until they pass or the command times out.
Last updated
- Since
- 16.0.0
Syntax
cy.getAllLocalStorage()
cy.getAllLocalStorage(options)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
cy.clearAllLocalStorage()cy.clearAllSessionStorage()cy.clearCookies()cy.clearLocalStorage()cy.getAllSessionStorage()