Cypress Docs Logo
Guides API Plugins Examples FAQ Learn Learn GitHub
Guides API Plugins Examples FAQ Learn GitHub

API

  • Table of Contents

Events

  • Catalog of Events

Assertions

  • All Assertions

Commands

  • and
  • as
  • blur
  • check
  • children
  • clear
  • clearCookie
  • clearCookies
  • clearLocalStorage
  • click
  • clock
  • closest
  • contains
  • dblclick
  • debug
  • document
  • each
  • end
  • eq
  • exec
  • filter
  • find
  • first
  • fixture
  • focus
  • focused
  • get
  • getCookie
  • getCookies
  • go
  • hash
  • hover
  • intercept
  • invoke
  • its
  • last
  • location
  • log
  • mount
  • next
  • nextAll
  • nextUntil
  • not
  • origin
  • parent
  • parents
  • parentsUntil
  • pause
  • prev
  • prevAll
  • prevUntil
  • readFile
  • reload
  • request
  • rightclick
  • root
  • screenshot
  • scrollIntoView
  • scrollTo
  • select
  • selectFile
  • session
  • setCookie
  • shadow
  • should
  • siblings
  • spread
  • spy
  • stub
  • submit
  • task
  • then
  • tick
  • title
  • trigger
  • type
  • uncheck
  • url
  • viewport
  • visit
  • wait
  • window
  • within
  • wrap
  • writeFile

Utilities

  • _
  • $
  • Blob
  • Buffer
  • minimatch
  • Promise
  • sinon

Cypress API

  • Commands
  • Cookies
  • Keyboard
  • Screenshot
  • SelectorPlayground
  • arch
  • browser
  • config
  • currentTest
  • dom
  • env
  • isBrowser
  • isCy
  • log
  • platform
  • session
  • spec
  • testingType
  • version

Plugins

  • Writing a Plugin
  • Configuration
  • Preprocessors
  • Before Run
  • After Run
  • Before Spec
  • After Spec
  • Browser Launching
  • After Screenshot
  • Table of Contents
  • Catalog of Events
  • All Assertions
  • and
  • as
  • blur
  • check
  • children
  • clear
  • clearCookie
  • clearCookies
  • clearLocalStorage
  • click
  • clock
  • closest
  • contains
  • dblclick
  • debug
  • document
  • each
  • end
  • eq
  • exec
  • filter
  • find
  • first
  • fixture
  • focus
  • focused
  • get
  • getCookie
  • getCookies
  • go
  • hash
  • hover
  • intercept
  • invoke
  • its
  • last
  • location
  • log
  • mount
  • next
  • nextAll
  • nextUntil
  • not
  • origin
  • parent
  • parents
  • parentsUntil
  • pause
  • prev
  • prevAll
  • prevUntil
  • readFile
  • reload
  • request
  • rightclick
  • root
  • screenshot
  • scrollIntoView
  • scrollTo
  • select
  • selectFile
  • session
  • setCookie
  • shadow
  • should
  • siblings
  • spread
  • spy
  • stub
  • submit
  • task
  • then
  • tick
  • title
  • trigger
  • type
  • uncheck
  • url
  • viewport
  • visit
  • wait
  • window
  • within
  • wrap
  • writeFile
  • _
  • $
  • Blob
  • Buffer
  • minimatch
  • Promise
  • sinon
  • Commands
  • Cookies
  • Keyboard
  • Screenshot
  • SelectorPlayground
  • arch
  • browser
  • config
  • currentTest
  • dom
  • env
  • isBrowser
  • isCy
  • log
  • platform
  • session
  • spec
  • testingType
  • version
  • Writing a Plugin
  • Configuration
  • Preprocessors
  • Before Run
  • After Run
  • Before Spec
  • After Spec
  • Browser Launching
  • After Screenshot

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

  • cy.session()
About
Discord
Discussions
Changelog
Roadmap
Jobs
GitHub YouTube Twitter

© 2022 Cypress.io. All rights reserved.

ON THIS PAGE

  • Syntax
  • See also
Back to Top