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

Method seeCurrentActivityIs

lib/helper/Appium.js:684–688  ·  view source on GitHub ↗

* Check current activity on an Android device. * * ```js * I.seeCurrentActivityIs(".HomeScreenActivity") * ``` * @param {string} currentActivity * @return {Promise } * * Appium: support only Android

(currentActivity)

Source from the content-addressed store, hash-verified

682 * Appium: support only Android
683 */
684 async seeCurrentActivityIs(currentActivity) {
685 onlyForApps.call(this, supportedPlatform.android)
686 const res = await this.browser.getCurrentActivity()
687 return truth('current activity', `to be ${currentActivity}`).assert(res === currentActivity)
688 }
689
690 /**
691 * Check whether the device is locked.

Callers 3

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

Calls 2

truthFunction · 0.90
assertMethod · 0.80

Tested by

no test coverage detected