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

Method _before

lib/helper/WebDriver.js:694–701  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692 }
693
694 async _before() {
695 if (!webdriverio) await this._init()
696 this.context = this.root
697 if (this.options.restart && !this.options.manualStart) return this._startBrowser()
698 if (!this.isRunning && !this.options.manualStart) return this._startBrowser()
699 if (this.browser) this.$$ = this.browser.$$.bind(this.browser)
700 return this.browser
701 }
702
703 async _after() {
704 if (!this.isRunning) return

Callers

nothing calls this directly

Calls 2

_initMethod · 0.95
_startBrowserMethod · 0.95

Tested by

no test coverage detected