cypress / 9.4.1 / api / cypress-api / session.html /

Cypress.session

Cypress.session is a collection of session-related helper methods intended to be used alongside the cy.session() command.

Syntax

Clear all saved sessions and re-run the current spec file.

Cypress.session.clearAllSavedSessions()

This can also be done by clicking the "Clear All Sessions" button in the Sessions Instrument Panel.

Sessions Instrument Panel

See also

© 2017 Cypress.io
Licensed under the MIT License.
https://docs.cypress.io/api/cypress-api/session