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

Method switchToNative

lib/helper/Appium.js:932–938  ·  view source on GitHub ↗

* Switches to native context. * By default switches to NATIVE_APP context unless other specified. * * ```js * I.switchToNative(); * * // or set context explicitly * I.switchToNative('SOME_OTHER_CONTEXT'); * ``` * @param {*} [context] * @return {Promise }

(context = null)

Source from the content-addressed store, hash-verified

930 * @return {Promise<void>}
931 */
932 async switchToNative(context = null) {
933 this.isWeb = false
934 this.defaultContext = '//*'
935
936 if (context) return this.switchToContext(context)
937 return this.switchToContext('NATIVE_APP')
938 }
939
940 /**
941 * Start an arbitrary Android activity during a session.

Callers 4

_withinEndMethod · 0.95
Appium_test.jsFile · 0.80
AppiumTs.types.tsFile · 0.80
Appium.types.tsFile · 0.80

Calls 1

switchToContextMethod · 0.95

Tested by

no test coverage detected