MCPcopy
hub / github.com/codeceptjs/CodeceptJS / _stopBrowser

Method _stopBrowser

lib/helper/Puppeteer.js:673–683  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

671 }
672
673 async _stopBrowser() {
674 this.withinLocator = null
675 this._setPage(null)
676 this.context = null
677 popupStore.clear()
678 this.isAuthenticated = false
679 await this.browser.close()
680 if (this.isRemoteBrowser) {
681 await this.browser.disconnect()
682 }
683 }
684
685 async _evaluateHandeInContext(fn, handle, ...args) {
686 // If handle is provided, evaluate directly on it to avoid "JavaScript world" errors

Callers 4

_afterMethod · 0.95
_finishTestMethod · 0.95
Playwright_test.jsFile · 0.45
Puppeteer_test.jsFile · 0.45

Calls 2

_setPageMethod · 0.95
clearMethod · 0.45

Tested by

no test coverage detected