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

Method clearCookie

lib/helper/Playwright.js:2640–2646  ·  view source on GitHub ↗

* {{> clearCookie }}

(cookieName)

Source from the content-addressed store, hash-verified

2638 * {{> clearCookie }}
2639 */
2640 async clearCookie(cookieName) {
2641 if (!this.browserContext) return
2642 if (cookieName) {
2643 return this.browserContext.clearCookies({ name: cookieName })
2644 }
2645 return this.browserContext.clearCookies()
2646 }
2647
2648 /**
2649 * Executes a script on the page:

Callers 1

refreshContextSessionFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected