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

Method grabContext

lib/helper/Appium.js:799–802  ·  view source on GitHub ↗

* Retrieve current context * * ```js * let context = await I.grabContext(); * ``` * * @return {Promise } * * Appium: support Android and iOS

()

Source from the content-addressed store, hash-verified

797 * Appium: support Android and iOS
798 */
799 async grabContext() {
800 onlyForApps.call(this)
801 return this.browser.getContext()
802 }
803
804 /**
805 * Get current device activity.

Callers 4

Appium_ios_test.jsFile · 0.80
Appium_test.jsFile · 0.80
AppiumTs.types.tsFile · 0.80
Appium.types.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected