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

Method _withinBegin

lib/helper/Appium.js:386–398  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

384 }
385
386 async _withinBegin(context) {
387 if (this.isWeb) {
388 return super._withinBegin(context)
389 }
390 if (context === 'webview') {
391 return this.switchToWeb()
392 }
393 if (typeof context === 'object') {
394 if (context.web) return this.switchToWeb(context.web)
395 if (context.webview) return this.switchToWeb(context.webview)
396 }
397 return this.switchToContext(context)
398 }
399
400 _withinEnd() {
401 if (this.isWeb) {

Callers 1

withinFunction · 0.45

Calls 2

switchToWebMethod · 0.95
switchToContextMethod · 0.95

Tested by

no test coverage detected