MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / grabStorageState

Method grabStorageState

lib/helper/Playwright.js:2633–2635  ·  view source on GitHub ↗

* Grab the current storage state (cookies, localStorage, etc.) via Playwright's `browserContext.storageState()`. * Returns the raw object that Playwright provides. * * Security: The returned object can contain authentication tokens, session cookies * and (when `indexedDB: true` is used)

(options = {})

Source from the content-addressed store, hash-verified

2631 * ```
2632 */
2633 async grabStorageState(options = {}) {
2634 return this.browserContext.storageState(options)
2635 }
2636
2637 /**
2638 * {{> clearCookie }}

Callers 2

captureStorageStateFunction · 0.80
Playwright_test.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected