Skip to content
masterclass Buddy

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.

Subscribe
  • cy.clearAllLocalStorage()
  • cy.clearAllSessionStorage()
  • cy.clearCookies()
  • cy.clearLocalStorage()
  • cy.getAllSessionStorage()

Source: cy.getAllLocalStorage() | Cypress API Documentation. Checked 2026-11-03.